Skip to content

Commit

Permalink
fix: reset nuxt version
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Feb 17, 2021
1 parent a0c0279 commit 93e18b9
Show file tree
Hide file tree
Showing 3 changed files with 591 additions and 480 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@dword-design/base": "^7.0.0",
"axios": "^0.21.0",
"fs-extra": "^9.0.0",
"nuxt": "^2.11.0",
"nuxt": "~2.14.0",
"postcss": "^7.0.26",
"with-local-tmp-dir": "^2.2.7"
},
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export default function (moduleOptions) {
configs: options,
cssDest: P.relative(process.cwd(), cssDest),
options: {
rules: compact(flatMap('rules')(options.plugins)),
rules: options.plugins |> flatMap('rules') |> compact,
},
},
minimize: true,
postcssPlugins: compact(flatMap('postcssPlugins')(options.plugins)),
postcssPlugins:
options.plugins |> flatMap('postcssPlugins') |> compact,
},
})
})
Expand Down
Loading

0 comments on commit 93e18b9

Please sign in to comment.