File tree Expand file tree Collapse file tree 3 files changed +861
-598
lines changed Expand file tree Collapse file tree 3 files changed +861
-598
lines changed Original file line number Diff line number Diff line change 6
6
"main" : " index.js" ,
7
7
"scripts" : {
8
8
"build" : " rimraf dist && webpack && rimraf dist/*.js" ,
9
- "start" : " webpack-dev-server"
9
+ "start" : " webpack-dev-server --mode=development "
10
10
},
11
11
"author" : " Raphael Fabeni" ,
12
12
"license" : " MIT" ,
13
- "dependencies" : {},
14
13
"devDependencies" : {
15
14
"css-loader" : " ^0.28.5" ,
16
- "extract-text-webpack -plugin" : " ^3.0 .0" ,
15
+ "mini-css-extract -plugin" : " ^0.5 .0" ,
17
16
"node-sass" : " ^4.5.3" ,
18
17
"rimraf" : " ^2.6.1" ,
19
18
"sass-lint" : " ^1.8.0" ,
20
19
"sass-loader" : " ^6.0.6" ,
21
- "sasslint-webpack-plugin" : " ^1.0.4" ,
22
20
"style-loader" : " ^0.18.2" ,
23
- "webpack" : " 3.8.1" ,
24
- "webpack-dev-server" : " 2.11.1" ,
21
+ "stylelint-webpack-plugin" : " ^0.10.5" ,
22
+ "webpack" : " ^4.29.0" ,
23
+ "webpack-cli" : " ^3.2.1" ,
24
+ "webpack-dev-server" : " ^3.1.14" ,
25
25
"webpack-livereload-plugin" : " ^0.11.0"
26
26
}
27
27
}
Original file line number Diff line number Diff line change 1
- const ExtractTextPlugin = require ( 'extract-text-webpack -plugin' )
1
+ const MiniCssExtractPlugin = require ( "mini-css-extract -plugin" ) ;
2
2
const LiveReloadPlugin = require ( 'webpack-livereload-plugin' )
3
- const SassLintPlugin = require ( 'sasslint -webpack-plugin' )
3
+ // const StyleLintPlugin = require('stylelint -webpack-plugin');
4
4
const path = require ( 'path' )
5
5
const loaders = require ( './loaders.json' ) . loaders
6
6
@@ -25,24 +25,17 @@ module.exports = {
25
25
rules : [
26
26
{
27
27
test : / \. s a s s $ / ,
28
- use : ExtractTextPlugin . extract ( {
29
- fallback : 'style-loader' ,
30
- use : [
31
- { loader : 'css-loader' , options : { minimize : true } } ,
32
- { loader : 'sass-loader' }
33
- ]
34
- } )
28
+ use : [
29
+ MiniCssExtractPlugin . loader ,
30
+ { loader : 'css-loader' , options : { minimize : true } } ,
31
+ 'sass-loader' ,
32
+ ]
35
33
}
36
34
]
37
35
} ,
38
36
plugins : [
39
- new SassLintPlugin ( {
40
- configFile : '.sass-lint.yml' ,
41
- glob : 'src/**/*.s?(a|c)ss' ,
42
- failOnWarning : true ,
43
- failOnError : true
44
- } ) ,
45
- new ExtractTextPlugin ( '[name].css' ) ,
37
+ // new StyleLintPlugin(options),
38
+ new MiniCssExtractPlugin ( '[name].css' ) ,
46
39
new LiveReloadPlugin ( )
47
40
] ,
48
41
devServer : {
You can’t perform that action at this time.
0 commit comments