-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
postcss-loader warnings #278
Comments
And another warning:
|
Reproduced this problem, It works when set rule.use('postcss-loader').loader('postcss-loader').options(Object.assign({
plugins: [require('autoprefixer')],
sourceMap: true
}, siteConfig.postcss)) |
if (debug) {
// config.devtool('source-map')
} else if (!isProd) {
config.devtool('cheap-module-eval-source-map')
} I tried to comment that line but failed. Maybe the |
It should be: if (!isProd) {
config.devtool('cheap-module-eval-source-map')
} else if (debug) {
config.devtool('source-map')
} |
Yes, but it will still cause the warning if we don't set the |
😅have you tested for that? |
@meteorlxy hmm I was just using The actual problem is vue-loader will return sourcemaps for |
Oh my egoist! I cannot repro it against 87e88f3 😂 |
Oh my ulivz, me neither!! |
So amazing, what happened? |
I have nooooooooo idea. |
I even re-clone our repo again and cannot repro it.... |
emmm did you forget to add the hasWarning code......... |
emmm this warning would be another issue 😅 It looks like one of our dependencies is outdated, or our dependencies' dependencies, or ..... |
Welcome to find it out, thanks! |
@ulivz For me, after many times of if (stats.hasWarnings()) {
return reject(new Error(stats.toString()))
} After adding that again, I repro it successfully..... (老哥咱俩是不是蠢到一块去了) |
(老哥,咱俩是蠢到一块去了 😂) |
@yyx990803 might be a bug in vue-loader? |
Two things cause these warnings:
After I fix the I will make a PR to fix this issue later. |
Fixed at 34c7f99 |
vuepress/lib/build.js
Lines 99 to 107 in 2d6f02f
VuePress didn't handle webpack warnings, but if you add following lines:
And if you run
yarn build --debug
in VuePress repo, there're actually postcss-loader warnings:Not sure if this is a vue-loader bug since I can only reproduce it in this repo. I've tried console.log
this.sourceMap
invue-loader
, seems it's alwaystrue
even if I already setwebpackConfig.devtool: false
Test against latest commit: 2d6f02f
The text was updated successfully, but these errors were encountered: