apache / incubator-weex-loader

Apache License 2.0
65 stars 32 forks source link

不能像 vue-loader 那样自动加载 postcss 的配置文件? #63

Open niceue opened 6 years ago

niceue commented 6 years ago

postcss 是可以通过 .postcssrc.js 或者 postcss.config.js 配置参数的 参考: https://github.com/postcss/postcss-loader#configuration https://github.com/michael-ciniawsky/postcss-load-config

vue-loader 也是支持配置文件的: https://vue-loader.vuejs.org/zh-cn/features/postcss.html

我将 postcss 插件配置在 .postcssrc.js 中,vue-loader 可以正确读取,但 weex-loader 一定要配置在 webpack loader 的 options 中才生效