-
Notifications
You must be signed in to change notification settings - Fork 4.4k
autoprefixer只能用于通过vue-loader解析的样式 #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
以前是数组然后map每个loader的,如['style', 'css'],可是不知道哪个版本开始就只能一个字符串了。 |
我也是碰到了这个问题 在单独的.scss文件中 autoprefix没有起作用 |
我的方法是在 app.vue 中引入公共 css ...
<style src="./assets/css/style.css"></style>
<style>
.full-container {
width: 100%;
height: 100%;
}
</style> |
你太棒了,,,总算让我找到个可以解决的方式 |
@zWingz 你添加上去后,没有收到PostCSS Loader的警告吗? Previous source map found, but options.sourceMap isn't set. In this case the loader will discard the source map enterily for performance reasons. |
|
The same warning... look at this issues: I switch to a low version [email protected] |
上述两个问题都碰到了 |
@yoyo837 |
我暂时的做法是
添加postcss-loader,
并在根目录创建postcss.config.js
The text was updated successfully, but these errors were encountered: