@@ -3,7 +3,8 @@ var path = require('path');
33var MemoryFileSystem = require ( 'memory-fs' ) ;
44var webpack = require ( 'webpack' ) ;
55var _ = require ( 'lodash' ) ;
6- var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
6+ const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
7+
78var FakeCopyWebpackPlugin = require ( './helpers/copy-plugin-mock' ) ;
89var plugin = require ( '../index.js' ) ;
910
@@ -424,7 +425,7 @@ describe('ManifestPlugin', function() {
424425 } ) ;
425426 } ) ;
426427
427- describe ( 'with ExtractTextPlugin ' , function ( ) {
428+ describe ( 'with MiniCssExtractPlugin ' , function ( ) {
428429 it ( 'works when extracting css into a seperate file' , function ( done ) {
429430 webpackCompile ( {
430431 context : __dirname ,
@@ -440,17 +441,17 @@ describe('ManifestPlugin', function() {
440441 module : {
441442 rules : [ {
442443 test : / \. c s s $ / ,
443- use : ExtractTextPlugin . extract ( {
444- fallback : 'style- loader' ,
445- use : 'css-loader'
446- } )
444+ use : [
445+ MiniCssExtractPlugin . loader ,
446+ 'css-loader'
447+ ]
447448 } ]
448449 } ,
449450 plugins : [
450451 new plugin ( ) ,
451- new ExtractTextPlugin ( {
452+ new MiniCssExtractPlugin ( {
452453 filename : '[name].css' ,
453- allChunks : true
454+ // allChunks: true
454455 } )
455456 ]
456457 } , { } , function ( manifest , stats ) {
0 commit comments