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 039a4ec commit 0047c96
Show file tree
Hide file tree
Showing 3 changed files with 594 additions and 477 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"test": "base test"
},
"dependencies": {
"@dword-design/functions": "^1.1.5",
"linaria": "^2.0.0"
},
"devDependencies": {
"@dword-design/base": "^7.0.0",
"@dword-design/functions": "^1.1.5",
"@dword-design/puppeteer": "^1.0.1",
"depcheck-package-name": "^1.0.0",
"nuxt": "^2.14.3",
"nuxt": "~2.14.0",
"output-files": "^1.1.15",
"postcss-hexrgba": "^2.0.0",
"with-local-tmp-dir": "^2.2.8"
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { find } from '@dword-design/functions'

export default function () {
this.extendBuild(config => {
const jsRule = config.module.rules.find(rule => rule.test.test('.js'))
const jsRule = config.module.rules |> find(rule => rule.test.test('.js'))
jsRule.use.push({
loader: require.resolve('linaria/loader'),
options: {
Expand Down
Loading

0 comments on commit 0047c96

Please sign in to comment.