Error: No PostCSS Config found

来源:3-2 配置vue的jsx写法以及postcss

oooo_Bnose

2018-07-07 18:36


ERROR in ./src/assets/styles/test-style.styl (./node_modules/css-loader!./node_modules/postcss-loader/lib??ref--3-2!./node_modules/stylus-loader!./src/assets/styles/test-style.styl)

Module build failed (from ./node_modules/postcss-loader/lib/index.js):

Error: No PostCSS Config found in: C:\Users\spock\Desktop\webpack\src\assets\styles

    at C:\Users\spock\Desktop\webpack\node_modules\postcss-load-config\index.js:51:26

 @ ./src/assets/styles/test-style.styl 2:14-191 21:1-42:3 22:19-196

 @ ./src/index.js

 @ multi (webpack)-dev-server/client?http://0.0.0.0:8088 webpack/hot/dev-server ./src/index.js

设置了postcss.config.js,也配置了loader


写回答 关注

1回答

  • nice编程
    2018-07-09 18:52:43
    已采纳

    https://github.com/michael-ciniawsky/postcss-load-config,建议你看一下这个链接

    ma瑶 回复oooo_B...

    postcss-plugin -d 还是 -s呢

    2019-08-14 10:50:34

    共 3 条回复 >

Vue+Webpack打造todo应用

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

84606 学习 · 787 问题

查看课程

相似问题