Parcourir la source

fix: ignore minicssplugin order

lanjianrong il y a 2 ans
Parent
commit
42350830c9
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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