node 环境(vue 项目 引入mui.min.css 打包报错
引用mui.min.csss,运行没问题,打包就报错,样式明显是没引用mui.min.css的,所以百度找到了方法;[1m[31mERROR in ./~/extract-text-webpack-plugin/loader.js?{"omit":1,"remove":true,"publicPath":"../../"
·
引用mui.min.csss,运行没问题,打包就报错,样式明显是没引用mui.min.css的,所以百度找到了方法;
[1m[31mERROR in ./~/extract-text-webpack-plugin/loader.js?{"omit":1,"remove":true,"publicPath":"../../"}!./~/vue-style-loader!./~/css-loader?{"minimize":true,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-f5406ef0","scoped":true,"hasInlineConfig":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/page/home.vue
Module build failed: ModuleBuildError: Module build failed:
at runLoaders (D:\job\HRBDMobileVue2\node_modules\webpack\lib\NormalModule.js:192:19)
at D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:364:11
at D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:230:18
at context.callback (D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.<anonymous> (D:\job\HRBDMobileVue2\node_modules\css-loader\lib\loader.js:50:18)
at D:\job\HRBDMobileVue2\node_modules\css-loader\lib\processCss.js:234:4
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:121:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)[39m[22m
[1m[31mERROR in ./~/extract-text-webpack-plugin/loader.js?{"omit":1,"remove":true,"publicPath":"../../"}!./~/vue-style-loader!./~/css-loader?{"minimize":true,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-f5406ef0","scoped":true,"hasInlineConfig":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/page/home.vue
Module build failed: ModuleBuildError: Module build failed:
at runLoaders (D:\job\HRBDMobileVue2\node_modules\webpack\lib\NormalModule.js:192:19)
at D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:364:11
at D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:230:18
at context.callback (D:\job\HRBDMobileVue2\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.<anonymous> (D:\job\HRBDMobileVue2\node_modules\css-loader\lib\loader.js:50:18)
at D:\job\HRBDMobileVue2\node_modules\css-loader\lib\processCss.js:234:4
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:121:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)[39m[22m
Build failed with errors.
解决方法:
mui.min.css 中.mui-spinner:after中引入svg,将background-url 注掉ok了。
更多推荐
已为社区贡献12条内容
所有评论(0)