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 = {
2121 'prefer-destructuring' : 0 ,
2222 'array-callback-return' : 0 ,
2323 'prefer-template' : 0 ,
24- 'class-methods-use-this' : 0
24+ 'class-methods-use-this' : 0 ,
25+ 'no-plusplus' : 0
2526 }
2627} ;
Original file line number Diff line number Diff line change 11{
22 "name" : " extract-css-chunks-webpack-plugin" ,
3- "version" : " 3.2.1-alpha.0 " ,
3+ "version" : " 3.2.1-alpha.1 " ,
44 "author" : " James Gillmore <james@faceyspacey.com>" ,
55 "contributors" : [
66 " 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 {
426426 this . traverseDepthFirst ( rule , ( node ) => {
427427 if ( node && node . use && Array . isArray ( node . use ) ) {
428428 const isMiniCss = node . use . some ( ( l ) => {
429- if ( typeof l === 'function' ) {
430- return false ;
431- }
432429 const needle = l . loader || l ;
433430 if ( typeof l === 'function' ) {
434431 return false ;
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ const pluginName = 'extract-css-chunks-webpack-plugin';
1212
1313const exec = ( loaderContext , code , filename ) => {
1414 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 ) ;
1617 module . filename = filename ;
1718 module . _compile ( code , filename ) ; // eslint-disable-line no-underscore-dangle
1819 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+
13const Self = require ( '../../../' ) ;
24
35module . exports = {
@@ -7,15 +9,17 @@ module.exports = {
79 {
810 test : / \. c s s $ / ,
911 use : [
10- ( ) => ( { loader : 'css-loader' } ) ,
12+ ( ) => [
13+ Self . loader ,
14+ 'css-loader' ,
15+ ] ,
1116 ] ,
1217 } ,
1318 ] ,
1419 } ,
1520 plugins : [
1621 new Self ( {
1722 filename : '[name].css' ,
18- hot : true ,
1923 } ) ,
2024 ] ,
2125} ;
You can’t perform that action at this time.
0 commit comments