为了账号安全,请及时绑定邮箱和手机立即绑定

无法编译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.


正在回答

1 回答

你缺少loader

你可以参考一下我的代码

https://github.com/carrieguo/vue.js-todolist

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Vue+Webpack打造todo应用
  • 参与学习       84606    人
  • 解答问题       787    个

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

进入课程

无法编译css

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信