Skip to content

Commit 7dd2b93

Browse files
committed
refactor:disable postcss in module
1 parent 3d6d62f commit 7dd2b93

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/kitchen-sink/nuxt.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ const { join } = require('path')
22
module.exports = {
33
srcDir: __dirname,
44
build: {
5-
// remove postcss-cssnext due to https://github.com/MoOx/reduce-css-calc/issues/34
6-
postcss: [
7-
],
85
extractCSS: true
96
},
107
modules: [

lib/module.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ module.exports = function nuxt7 (_options) {
1717
this.options.mode = 'spa'
1818
this.options.render.ssr = false
1919
this.options.build.ssr = false
20+
// disable postcss due to https://github.com/MoOx/reduce-css-calc/issues/34
21+
this.options.build.postcss = false
2022

2123
// Customize build
2224
this.extendBuild(config => extendConfig(config, options))

0 commit comments

Comments
 (0)