无法编译css

来源:2-2 webpack配置项目加载各种静态资源及css预处理器

会吃鱼的猫咪

2019-10-21 12:32

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回答

Vue+Webpack打造todo应用

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

84606 学习 · 787 问题

查看课程

相似问题