一、warning信息
chunk pages/channelManagement/qualification/create/pages/channelManagement/qualification/detail/pages/chan/c61aa583 [extract-css-chunks-webpack-plugin]
Conflicting order. Following module has been added:
* css ./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-oneOf-1-2!./node_modules/less-loader/diref--5-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--5-oneOf-1-3!./node_modules/sass-resources-loader/lib/loader.js??ref--5-oneOf-1-4!./node_modulduleComponents/newPolicyManagement/stamp-comfies/vue-loader/lib??vue-loader-options!./src/moduleComponents/newPolicyManagement/stamp-comfirm-dialog.vue?vue&type=style&index=0&id=e864c8c4&scoped=true&lang=less&
despite it was not able to fulfill desired ordering with these modules: ref--5-oneOf-1-2!./node_modules/less-loader/di
* css ./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??duleComponents/channelManagement/qualificationref--5-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--5-oneOf-1-3!./node_modules/sass-resources-loader/lib/loader.js??ref--5-oneOf-1-4!./node_modules/vue-loader/lib??vue-loader-options!./src/moduleComponents/channelManagement/qualification/picInfoCard.vue?vue&type=style&index=0&lang=less&
- couldn't fulfill desired order of chunk group(s) pages/channelManagement/qualification/detail, pages/channelManagement/qualification/exchange
- while fulfilling desired order of chunk group(s) pages/channelManagement/qualification/create
二、问题分析:
插件引入顺序的问题:nuxt项目中,两个及以上的.vue文件,引入同样的自定义组件,引入的先后顺序需要一样,否则就有对应的warning。
三、解决问题:?
四、 代码:
extractCSS: {
ignoreOrder: true
},
成功解决了!?
五、参考链接:
Nuxt Compiled with warnings - extract-css-chunks-webpack-plugin - 简书
|