File tree Expand file tree Collapse file tree 7 files changed +12
-9
lines changed
test/cases/function-loader Expand file tree Collapse file tree 7 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = {
21
21
'prefer-destructuring' : 0 ,
22
22
'array-callback-return' : 0 ,
23
23
'prefer-template' : 0 ,
24
- 'class-methods-use-this' : 0
24
+ 'class-methods-use-this' : 0 ,
25
+ 'no-plusplus' : 0
25
26
}
26
27
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " extract-css-chunks-webpack-plugin" ,
3
- "version" : " 3.2.1-alpha.0 " ,
3
+ "version" : " 3.2.1-alpha.1 " ,
4
4
"author" : " James Gillmore <james@faceyspacey.com>" ,
5
5
"contributors" : [
6
6
" Zack Jackson <zack@ScriptedAlchemy.com> (https://github.com/ScriptedAlchemy)"
Original file line number Diff line number Diff line change @@ -426,9 +426,6 @@ class ExtractCssChunks {
426
426
this . traverseDepthFirst ( rule , ( node ) => {
427
427
if ( node && node . use && Array . isArray ( node . use ) ) {
428
428
const isMiniCss = node . use . some ( ( l ) => {
429
- if ( typeof l === 'function' ) {
430
- return false ;
431
- }
432
429
const needle = l . loader || l ;
433
430
if ( typeof l === 'function' ) {
434
431
return false ;
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ const pluginName = 'extract-css-chunks-webpack-plugin';
12
12
13
13
const exec = ( loaderContext , code , filename ) => {
14
14
const module = new NativeModule ( filename , loaderContext ) ;
15
- module . paths = NativeModule . _nodeModulePaths ( loaderContext . context ) ; // eslint-disable-line no-underscore-dangle
15
+ // eslint-disable-line no-underscore-dangle
16
+ module . paths = NativeModule . _nodeModulePaths ( loaderContext . context ) ;
16
17
module . filename = filename ;
17
18
module . _compile ( code , filename ) ; // eslint-disable-line no-underscore-dangle
18
19
return module . exports ;
Original file line number Diff line number Diff line change 1
- import './style .css' ;
1
+ import './main .css' ;
File renamed without changes.
Original file line number Diff line number Diff line change
1
+
2
+
1
3
const Self = require ( '../../../' ) ;
2
4
3
5
module . exports = {
@@ -7,15 +9,17 @@ module.exports = {
7
9
{
8
10
test : / \. c s s $ / ,
9
11
use : [
10
- ( ) => ( { loader : 'css-loader' } ) ,
12
+ ( ) => [
13
+ Self . loader ,
14
+ 'css-loader' ,
15
+ ] ,
11
16
] ,
12
17
} ,
13
18
] ,
14
19
} ,
15
20
plugins : [
16
21
new Self ( {
17
22
filename : '[name].css' ,
18
- hot : true ,
19
23
} ) ,
20
24
] ,
21
25
} ;
You can’t perform that action at this time.
0 commit comments