Skip to content

Commit

Permalink
chore: ignore coverage on postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jul 20, 2020
1 parent 977d605 commit 1dc2526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = async function (moduleOptions) {
// This hooks is called only for `nuxt dev` and `nuxt build` commands
this.nuxt.hook('build:before', () => {
// Fix issue with postCSS that needs process.env.NODE_ENV
/* istanbul ignore if */
if (!this.options.dev && !process.env.NODE_ENV) {
process.env.NODE_ENV = 'production'
}
Expand Down

0 comments on commit 1dc2526

Please sign in to comment.