無法編譯css
ERROR in ./src/assets/styles/test.css 1:4
Module parse failed: Unexpected token (1:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> body{
|? ?color: red;
| }
?@ ./src/index.js 4:0-34
Child html-webpack-plugin for "index.html":
? ? ?1 asset
? ? Entrypoint undefined = index.html
? ? [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/html-webpack-plugin/default_index.ejs] 376 bytes {0} [built]
? ? [./node_modules/lodash/lodash.js] 528 KiB {0} [built]
? ? [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
? ? [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
i ?wdm?: Failed to compile.
2019-10-22
你缺少loader
你可以參考一下我的代碼
https://github.com/carrieguo/vue.js-todolist