问答详情
源自:3-2 配置vue的jsx写法以及postcss

Error: No PostCSS Config found


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


提问者:oooo_Bnose 2018-07-07 18:36

个回答

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

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