Skip to content

postcss-loader warnings #278

Closed
Closed
@egoist

Description

@egoist

vuepress/lib/build.js

Lines 99 to 107 in 2d6f02f

if (stats.hasErrors()) {
stats.toJson().errors.forEach(err => {
console.error(err)
})
reject(new Error(`Failed to compile with errors.`))
return
}
resolve(stats.toJson({ modules: false }))
})

VuePress didn't handle webpack warnings, but if you add following lines:

if (stats.hasWarnings()) {
  return reject(new Error(stats.toString()))
}

And if you run yarn build --debug in VuePress repo, there're actually postcss-loader warnings:

2018-04-27 10 04 08

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 in vue-loader, seems it's always true even if I already set webpackConfig.devtool: false

Test against latest commit: 2d6f02f

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementRequest to enhance an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions