Browse Source

fix: ignore minicssplugin order

lanjianrong 2 years ago
parent
commit
42350830c9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      config/webpack.config.js

+ 2 - 1
config/webpack.config.js

@@ -593,7 +593,8 @@ module.exports = function (webpackEnv) {
           // Options similar to the same options in webpackOptions.output
           // both options are optional
           filename: 'static/css/[name].[contenthash:8].css',
-          chunkFilename: 'static/css/[name].[contenthash:8].chunk.css'
+          chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
+          ignoreOrder: true
         }),
       // Generate an asset manifest file with the following content:
       // - "files" key: Mapping of all asset filenames to their corresponding