mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
feat: update all dependencies that require node 10.x (#8346)
This commit is contained in:
parent
8d9d6a94d2
commit
ab039f051a
@ -67,7 +67,7 @@
|
|||||||
"vuex": "^3.6.0"
|
"vuex": "^3.6.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.9.0",
|
"node": ">=10.13.0",
|
||||||
"npm": ">=5.0.0"
|
"npm": ">=6.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,8 +69,8 @@
|
|||||||
"@nuxt/webpack": "2.14.8"
|
"@nuxt/webpack": "2.14.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.9.0",
|
"node": ">=10.13.0",
|
||||||
"npm": ">=5.0.0"
|
"npm": ">=6.0.0"
|
||||||
},
|
},
|
||||||
"collective": {
|
"collective": {
|
||||||
"url": "https://opencollective.com/nuxtjs",
|
"url": "https://opencollective.com/nuxtjs",
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"post-update": "yarn upgrade --latest"
|
"post-update": "yarn upgrade --latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"node-sass": "^4.7.2",
|
"sass": "^1.29.0",
|
||||||
"sass-loader": "^6.0.6"
|
"sass-loader": "^10.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"post-update": "yarn upgrade --latest"
|
"post-update": "yarn upgrade --latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"node-sass": "^4.6.0",
|
"sass": "^1.29.0",
|
||||||
"sass-loader": "^6.0.6"
|
"sass-loader": "^10.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
package.json
17
package.json
@ -52,10 +52,10 @@
|
|||||||
"eslint": "^7.14.0",
|
"eslint": "^7.14.0",
|
||||||
"eslint-multiplexer": "^2.0.0",
|
"eslint-multiplexer": "^2.0.0",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"execa": "^3.4.0",
|
"execa": "^4.1.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"finalhandler": "^1.1.2",
|
"finalhandler": "^1.1.2",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"get-port": "^5.1.1",
|
"get-port": "^5.1.1",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"got": "^11.8.0",
|
"got": "^11.8.0",
|
||||||
@ -64,19 +64,20 @@
|
|||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jiti": "^0.1.17",
|
"jiti": "^0.1.17",
|
||||||
"jsdom": "^16.4.0",
|
"jsdom": "^16.4.0",
|
||||||
|
"jsonfile": "^6.1.0",
|
||||||
"klaw-sync": "^6.0.0",
|
"klaw-sync": "^6.0.0",
|
||||||
"lerna": "^3.22.1",
|
"lerna": "^3.22.1",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"node-sass": "^4.14.1",
|
"puppeteer-core": "^5.4.1",
|
||||||
"puppeteer-core": "^5.5.0",
|
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "2.34.0",
|
"rollup": "2.34.0",
|
||||||
"rollup-plugin-license": "^2.2.0",
|
"rollup-plugin-license": "^2.2.0",
|
||||||
"sass-loader": "^8.0.2",
|
"sass": "^1.29.0",
|
||||||
"sort-package-json": "^1.48.0",
|
"sass-loader": "^10.1.0",
|
||||||
"typescript": "~4.1",
|
"sort-package-json": "^1.46.1",
|
||||||
"vue-jest": "^4.0.0-rc.1"
|
"typescript": "~4.0",
|
||||||
|
"vue-jest": "^4.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,18 +9,18 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/devalue": "^1.2.4",
|
"@nuxt/devalue": "^1.2.4",
|
||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.7",
|
||||||
"@nuxt/vue-app": "2.14.8",
|
"@nuxt/vue-app": "2.14.7",
|
||||||
"@nuxt/webpack": "2.14.8",
|
"@nuxt/webpack": "2.14.7",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^4.1.0",
|
||||||
"chokidar": "^3.4.3",
|
"chokidar": "^3.4.3",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"ignore": "^5.1.8",
|
"ignore": "^5.1.8",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"pify": "^4.0.1",
|
"pify": "^5.0.0",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
"serialize-javascript": "^5.0.1",
|
"serialize-javascript": "^5.0.1",
|
||||||
"upath": "^2.0.1"
|
"upath": "^2.0.1"
|
||||||
|
@ -15,16 +15,16 @@
|
|||||||
"@nuxt/config": "2.14.8",
|
"@nuxt/config": "2.14.8",
|
||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.8",
|
||||||
"boxen": "^4.2.0",
|
"boxen": "^4.2.0",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^4.1.0",
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"connect": "^3.7.0",
|
"connect": "^3.7.0",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"crc": "^3.8.0",
|
"crc": "^3.8.0",
|
||||||
"destr": "^1.0.1",
|
"destr": "^1.0.1",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"execa": "^3.4.0",
|
"execa": "^4.1.0",
|
||||||
"exit": "^0.1.2",
|
"exit": "^0.1.2",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"globby": "^11.0.1",
|
"globby": "^11.0.1",
|
||||||
"hable": "^3.0.0",
|
"hable": "^3.0.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"serve-static": "^1.14.1",
|
"serve-static": "^1.14.1",
|
||||||
"std-env": "^2.2.1",
|
"std-env": "^2.2.1",
|
||||||
"upath": "^2.0.1",
|
"upath": "^2.0.1",
|
||||||
"wrap-ansi": "^6.2.0"
|
"wrap-ansi": "^7.0.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
@ -98,11 +98,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -132,8 +132,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -169,11 +169,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -203,8 +203,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -240,11 +240,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -280,8 +280,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -323,11 +323,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -366,8 +366,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -412,11 +412,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -452,8 +452,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -495,11 +495,11 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"modules\\": Object {
|
\\"modules\\": Object {
|
||||||
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
\\"localIdentName\\": \\"[local]_[hash:base64:5]\\",
|
||||||
},
|
},
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -535,8 +535,8 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"css-loader\\",
|
\\"loader\\": \\"css-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"importLoaders\\": 2,
|
\\"importLoaders\\": 2,
|
||||||
\\"onlyLocals\\": false,
|
|
||||||
\\"sourceMap\\": false,
|
\\"sourceMap\\": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -570,6 +570,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"url-loader\\",
|
\\"loader\\": \\"url-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"limit\\": 1000,
|
\\"limit\\": 1000,
|
||||||
\\"name\\": \\"img/[name].[contenthash:7].[ext]\\",
|
\\"name\\": \\"img/[name].[contenthash:7].[ext]\\",
|
||||||
},
|
},
|
||||||
@ -582,6 +583,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"url-loader\\",
|
\\"loader\\": \\"url-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"limit\\": 1000,
|
\\"limit\\": 1000,
|
||||||
\\"name\\": \\"fonts/[name].[contenthash:7].[ext]\\",
|
\\"name\\": \\"fonts/[name].[contenthash:7].[ext]\\",
|
||||||
},
|
},
|
||||||
@ -594,6 +596,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
|||||||
Object {
|
Object {
|
||||||
\\"loader\\": \\"file-loader\\",
|
\\"loader\\": \\"file-loader\\",
|
||||||
\\"options\\": Object {
|
\\"options\\": Object {
|
||||||
|
\\"esModule\\": false,
|
||||||
\\"name\\": \\"videos/[name].[contenthash:7].[ext]\\",
|
\\"name\\": \\"videos/[name].[contenthash:7].[ext]\\",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.8",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"create-require": "^1.1.1",
|
"create-require": "^1.1.1",
|
||||||
"defu": "^2.0.4",
|
"defu": "^3.2.2",
|
||||||
"destr": "^1.0.1",
|
"destr": "^1.0.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
|
@ -22,9 +22,9 @@ export default () => ({
|
|||||||
video: ({ isDev }) => isDev ? '[path][name].[ext]' : 'videos/[name].[contenthash:7].[ext]'
|
video: ({ isDev }) => isDev ? '[path][name].[ext]' : 'videos/[name].[contenthash:7].[ext]'
|
||||||
},
|
},
|
||||||
loaders: {
|
loaders: {
|
||||||
file: {},
|
file: { esModule: false },
|
||||||
fontUrl: { limit: 1000 },
|
fontUrl: { esModule: false, limit: 1000 },
|
||||||
imgUrl: { limit: 1000 },
|
imgUrl: { esModule: false, limit: 1000 },
|
||||||
pugPlain: {},
|
pugPlain: {},
|
||||||
vue: {
|
vue: {
|
||||||
transformAssetUrls: {
|
transformAssetUrls: {
|
||||||
@ -34,8 +34,9 @@ export default () => ({
|
|||||||
embed: 'src'
|
embed: 'src'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
css: {},
|
css: { esModule: false },
|
||||||
cssModules: {
|
cssModules: {
|
||||||
|
esModule: false,
|
||||||
modules: {
|
modules: {
|
||||||
localIdentName: '[local]_[hash:base64:5]'
|
localIdentName: '[local]_[hash:base64:5]'
|
||||||
}
|
}
|
||||||
|
@ -63,19 +63,25 @@ Object {
|
|||||||
"indicator": false,
|
"indicator": false,
|
||||||
"loaders": Object {
|
"loaders": Object {
|
||||||
"css": Object {
|
"css": Object {
|
||||||
|
"esModule": false,
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
},
|
},
|
||||||
"cssModules": Object {
|
"cssModules": Object {
|
||||||
|
"esModule": false,
|
||||||
"modules": Object {
|
"modules": Object {
|
||||||
"localIdentName": "[local]_[hash:base64:5]",
|
"localIdentName": "[local]_[hash:base64:5]",
|
||||||
},
|
},
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
},
|
},
|
||||||
"file": Object {},
|
"file": Object {
|
||||||
|
"esModule": false,
|
||||||
|
},
|
||||||
"fontUrl": Object {
|
"fontUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"imgUrl": Object {
|
"imgUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"less": Object {
|
"less": Object {
|
||||||
|
@ -51,17 +51,24 @@ Object {
|
|||||||
"position": "bottom-right",
|
"position": "bottom-right",
|
||||||
},
|
},
|
||||||
"loaders": Object {
|
"loaders": Object {
|
||||||
"css": Object {},
|
"css": Object {
|
||||||
|
"esModule": false,
|
||||||
|
},
|
||||||
"cssModules": Object {
|
"cssModules": Object {
|
||||||
|
"esModule": false,
|
||||||
"modules": Object {
|
"modules": Object {
|
||||||
"localIdentName": "[local]_[hash:base64:5]",
|
"localIdentName": "[local]_[hash:base64:5]",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"file": Object {},
|
"file": Object {
|
||||||
|
"esModule": false,
|
||||||
|
},
|
||||||
"fontUrl": Object {
|
"fontUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"imgUrl": Object {
|
"imgUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"less": Object {},
|
"less": Object {},
|
||||||
@ -428,17 +435,24 @@ Object {
|
|||||||
"position": "bottom-right",
|
"position": "bottom-right",
|
||||||
},
|
},
|
||||||
"loaders": Object {
|
"loaders": Object {
|
||||||
"css": Object {},
|
"css": Object {
|
||||||
|
"esModule": false,
|
||||||
|
},
|
||||||
"cssModules": Object {
|
"cssModules": Object {
|
||||||
|
"esModule": false,
|
||||||
"modules": Object {
|
"modules": Object {
|
||||||
"localIdentName": "[local]_[hash:base64:5]",
|
"localIdentName": "[local]_[hash:base64:5]",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"file": Object {},
|
"file": Object {
|
||||||
|
"esModule": false,
|
||||||
|
},
|
||||||
"fontUrl": Object {
|
"fontUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"imgUrl": Object {
|
"imgUrl": Object {
|
||||||
|
"esModule": false,
|
||||||
"limit": 1000,
|
"limit": 1000,
|
||||||
},
|
},
|
||||||
"less": Object {},
|
"less": Object {},
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"debug": "^4.2.0",
|
"debug": "^4.2.0",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"hable": "^3.0.0",
|
"hable": "^3.0.0",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"std-env": "^2.2.1"
|
"std-env": "^2.2.1"
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.7",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^4.1.0",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"devalue": "^2.0.1",
|
"devalue": "^2.0.1",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"node-html-parser": "^2.0.0"
|
"node-html-parser": "^2.0.0"
|
||||||
},
|
},
|
||||||
|
@ -12,17 +12,17 @@
|
|||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.8",
|
||||||
"@nuxt/vue-renderer": "2.14.8",
|
"@nuxt/vue-renderer": "2.14.8",
|
||||||
"@nuxtjs/youch": "^4.2.3",
|
"@nuxtjs/youch": "^4.2.3",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^4.1.0",
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"connect": "^3.7.0",
|
"connect": "^3.7.0",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"fresh": "^0.5.2",
|
"fresh": "^0.5.2",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"ip": "^1.1.5",
|
"ip": "^1.1.5",
|
||||||
"launch-editor-middleware": "^2.2.1",
|
"launch-editor-middleware": "^2.2.1",
|
||||||
"on-headers": "^1.0.2",
|
"on-headers": "^1.0.2",
|
||||||
"pify": "^4.0.1",
|
"pify": "^5.0.0",
|
||||||
"serve-placeholder": "^1.2.2",
|
"serve-placeholder": "^1.2.2",
|
||||||
"serve-static": "^1.14.1",
|
"serve-static": "^1.14.1",
|
||||||
"server-destroy": "^1.0.1"
|
"server-destroy": "^1.0.1"
|
||||||
|
10
packages/types/config/build.d.ts
vendored
10
packages/types/config/build.d.ts
vendored
@ -8,7 +8,7 @@ import { Options as AutoprefixerOptions } from 'autoprefixer'
|
|||||||
import { Options as FileLoaderOptions } from 'file-loader'
|
import { Options as FileLoaderOptions } from 'file-loader'
|
||||||
import { Options as HtmlMinifierOptions } from 'html-minifier'
|
import { Options as HtmlMinifierOptions } from 'html-minifier'
|
||||||
import * as Less from 'less'
|
import * as Less from 'less'
|
||||||
import { Options as SassOptions } from 'node-sass'
|
import { Options as SassOptions } from 'sass'
|
||||||
import { Options as OptimizeCssAssetsWebpackPluginOptions } from 'optimize-css-assets-webpack-plugin'
|
import { Options as OptimizeCssAssetsWebpackPluginOptions } from 'optimize-css-assets-webpack-plugin'
|
||||||
import { Plugin as PostcssPlugin } from 'postcss'
|
import { Plugin as PostcssPlugin } from 'postcss'
|
||||||
import { Options as PugOptions } from 'pug'
|
import { Options as PugOptions } from 'pug'
|
||||||
@ -27,11 +27,13 @@ import { MiddlewareOptions as WebpackHotMiddlewareOptions, ClientOptions as Webp
|
|||||||
|
|
||||||
type CssLoaderUrlFunction = (url: string, resourcePath: string) => boolean
|
type CssLoaderUrlFunction = (url: string, resourcePath: string) => boolean
|
||||||
type CssLoaderImportFunction = (parsedImport: string, resourcePath: string) => boolean
|
type CssLoaderImportFunction = (parsedImport: string, resourcePath: string) => boolean
|
||||||
type CssLoaderMode = 'global' | 'local'
|
type CssLoaderMode = 'global' | 'local' | 'pure'
|
||||||
interface CssLoaderModulesOptions {
|
interface CssLoaderModulesOptions {
|
||||||
context?: string
|
context?: string
|
||||||
|
exportLocalsConvention?: 'asIs' | 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly'
|
||||||
|
exportOnlyLocals?: boolean
|
||||||
getLocalIdent?: (context: string, localIdentName: string, localName: string, options: CssLoaderModulesOptions) => string
|
getLocalIdent?: (context: string, localIdentName: string, localName: string, options: CssLoaderModulesOptions) => string
|
||||||
hashPrefix?: string
|
localIdentHashPrefix?: string
|
||||||
localIdentName?: string
|
localIdentName?: string
|
||||||
localIdentRegExp?: string | RegExp
|
localIdentRegExp?: string | RegExp
|
||||||
mode?: CssLoaderMode
|
mode?: CssLoaderMode
|
||||||
@ -40,9 +42,7 @@ interface CssLoaderModulesOptions {
|
|||||||
interface CssLoaderOptions {
|
interface CssLoaderOptions {
|
||||||
import?: boolean | CssLoaderImportFunction
|
import?: boolean | CssLoaderImportFunction
|
||||||
importLoaders?: number
|
importLoaders?: number
|
||||||
localsConvention?: 'asIs' | 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly'
|
|
||||||
modules?: boolean | CssLoaderMode | CssLoaderModulesOptions
|
modules?: boolean | CssLoaderMode | CssLoaderModulesOptions
|
||||||
onlyLocals?: boolean
|
|
||||||
sourceMap?: boolean
|
sourceMap?: boolean
|
||||||
url?: boolean | CssLoaderUrlFunction
|
url?: boolean | CssLoaderUrlFunction
|
||||||
}
|
}
|
||||||
|
@ -17,16 +17,17 @@
|
|||||||
"@types/file-loader": "^4.2.0",
|
"@types/file-loader": "^4.2.0",
|
||||||
"@types/html-minifier": "^4.0.0",
|
"@types/html-minifier": "^4.0.0",
|
||||||
"@types/less": "^3.0.1",
|
"@types/less": "^3.0.1",
|
||||||
"@types/node": "^12.19.8",
|
"@types/node": "^12.19.3",
|
||||||
"@types/node-sass": "^4.11.1",
|
|
||||||
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
|
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
|
||||||
"@types/pug": "^2.0.4",
|
"@types/pug": "^2.0.4",
|
||||||
"@types/serve-static": "^1.13.8",
|
"@types/sass": "^1.16.0",
|
||||||
"@types/terser-webpack-plugin": "^2.2.0",
|
"@types/serve-static": "^1.13.6",
|
||||||
"@types/webpack": "^4.41.25",
|
"@types/terser-webpack-plugin": "^4.2.0",
|
||||||
|
"@types/webpack": "^4.41.24",
|
||||||
"@types/webpack-bundle-analyzer": "^3.9.0",
|
"@types/webpack-bundle-analyzer": "^3.9.0",
|
||||||
"@types/webpack-dev-middleware": "^3.7.2",
|
"@types/webpack-dev-middleware": "^3.7.2",
|
||||||
"@types/webpack-hot-middleware": "^2.25.3"
|
"@types/webpack-hot-middleware": "^2.25.3",
|
||||||
|
"sass-loader": "^10.1.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"proper-lockfile": "^4.1.1",
|
"proper-lockfile": "^4.1.1",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"@nuxt/devalue": "^1.2.4",
|
"@nuxt/devalue": "^1.2.4",
|
||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.8",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^9.0.1",
|
||||||
"lru-cache": "^5.1.1",
|
"lru-cache": "^5.1.1",
|
||||||
"vue": "^2.6.12",
|
"vue": "^2.6.12",
|
||||||
"vue-meta": "^2.4.0",
|
"vue-meta": "^2.4.0",
|
||||||
|
@ -14,22 +14,22 @@
|
|||||||
"@nuxt/utils": "2.14.8",
|
"@nuxt/utils": "2.14.8",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"cache-loader": "^4.1.0",
|
"cache-loader": "^4.1.0",
|
||||||
"caniuse-lite": "^1.0.30001164",
|
"caniuse-lite": "^1.0.30001157",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^4.1.0",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"create-require": "^1.1.1",
|
"create-require": "^1.0.2",
|
||||||
"css-loader": "^3.6.0",
|
"css-loader": "^4.3.0",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eventsource-polyfill": "^0.9.6",
|
"eventsource-polyfill": "^0.9.6",
|
||||||
"extract-css-chunks-webpack-plugin": "^4.8.0",
|
"extract-css-chunks-webpack-plugin": "^4.8.0",
|
||||||
"file-loader": "^4.3.0",
|
"file-loader": "^6.2.0",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"hard-source-webpack-plugin": "^0.13.1",
|
"hard-source-webpack-plugin": "^0.13.1",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"html-webpack-plugin": "^4.5.0",
|
"html-webpack-plugin": "^4.5.0",
|
||||||
"memory-fs": "^0.4.1",
|
"memory-fs": "^0.5.0",
|
||||||
"optimize-css-assets-webpack-plugin": "^5.0.4",
|
"optimize-css-assets-webpack-plugin": "^5.0.4",
|
||||||
"pify": "^4.0.1",
|
"pify": "^5.0.0",
|
||||||
"postcss": "^7.0.32",
|
"postcss": "^7.0.32",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-import-resolver": "^2.0.0",
|
"postcss-import-resolver": "^2.0.0",
|
||||||
@ -38,21 +38,21 @@
|
|||||||
"postcss-url": "^8.0.0",
|
"postcss-url": "^8.0.0",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
"std-env": "^2.2.1",
|
"std-env": "^2.2.1",
|
||||||
"style-resources-loader": "^1.4.1",
|
"style-resources-loader": "^1.3.3",
|
||||||
"terser-webpack-plugin": "^2.3.5",
|
"terser-webpack-plugin": "^4.2.3",
|
||||||
"thread-loader": "^2.1.3",
|
"thread-loader": "^3.0.1",
|
||||||
"time-fix-plugin": "^2.0.7",
|
"time-fix-plugin": "^2.0.7",
|
||||||
"url-loader": "^2.3.0",
|
"url-loader": "^4.1.1",
|
||||||
"vue-loader": "^15.9.5",
|
"vue-loader": "^15.9.5",
|
||||||
"webpack": "^4.44.2",
|
"webpack": "^4.44.2",
|
||||||
"webpack-bundle-analyzer": "^3.9.0",
|
"webpack-bundle-analyzer": "^3.9.0",
|
||||||
"webpack-dev-middleware": "^3.7.2",
|
"webpack-dev-middleware": "^4.0.2",
|
||||||
"webpack-hot-middleware": "^2.25.0",
|
"webpack-hot-middleware": "^2.25.0",
|
||||||
"webpack-node-externals": "^2.5.2",
|
"webpack-node-externals": "^2.5.2",
|
||||||
"webpackbar": "^4.0.0"
|
"webpackbar": "^4.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.9.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
@ -168,15 +168,19 @@ export class WebpackBundler {
|
|||||||
const buildOptions = this.buildContext.options.build
|
const buildOptions = this.buildContext.options.build
|
||||||
const { client, ...hotMiddlewareOptions } = buildOptions.hotMiddleware || {}
|
const { client, ...hotMiddlewareOptions } = buildOptions.hotMiddleware || {}
|
||||||
|
|
||||||
|
compiler.options.watchOptions = this.buildContext.options.watchers.webpack
|
||||||
|
compiler.hooks.infrastructureLog.tap('webpack-dev-middleware-log', (name) => {
|
||||||
|
if (name === 'webpack-dev-middleware') {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return undefined
|
||||||
|
})
|
||||||
|
|
||||||
// Create webpack dev middleware
|
// Create webpack dev middleware
|
||||||
this.devMiddleware[name] = pify(
|
this.devMiddleware[name] = pify(
|
||||||
webpackDevMiddleware(
|
webpackDevMiddleware(
|
||||||
compiler, {
|
compiler, {
|
||||||
publicPath: buildOptions.publicPath,
|
outputFileSystem: compiler.outputFileSystem,
|
||||||
stats: false,
|
|
||||||
logLevel: 'silent',
|
|
||||||
watchOptions: this.buildContext.options.watchers.webpack,
|
|
||||||
fs: compiler.outputFileSystem,
|
|
||||||
...buildOptions.devMiddleware
|
...buildOptions.devMiddleware
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
@ -254,7 +254,7 @@ export default class WebpackBaseConfig {
|
|||||||
},
|
},
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
compress: {
|
compress: {
|
||||||
ecma: this.isModern ? 6 : undefined
|
ecma: this.isModern ? 2015 : undefined
|
||||||
},
|
},
|
||||||
mangle: {
|
mangle: {
|
||||||
reserved: reservedVueTags
|
reserved: reservedVueTags
|
||||||
|
@ -20,7 +20,7 @@ export default class StyleLoader {
|
|||||||
return this.buildContext.buildOptions.extractCSS
|
return this.buildContext.buildOptions.extractCSS
|
||||||
}
|
}
|
||||||
|
|
||||||
get onlyLocals () {
|
get exportOnlyLocals () {
|
||||||
return Boolean(this.isServer && this.extractCSS)
|
return Boolean(this.isServer && this.extractCSS)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,10 +68,13 @@ export default class StyleLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
css (options) {
|
css (options) {
|
||||||
options.onlyLocals = this.onlyLocals
|
|
||||||
const cssLoader = { loader: 'css-loader', options }
|
const cssLoader = { loader: 'css-loader', options }
|
||||||
|
|
||||||
if (options.onlyLocals) {
|
if (this.exportOnlyLocals) {
|
||||||
|
options.modules = {
|
||||||
|
...options.modules,
|
||||||
|
exportOnlyLocals: true
|
||||||
|
}
|
||||||
return [cssLoader]
|
return [cssLoader]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,25 +7,12 @@
|
|||||||
],
|
],
|
||||||
"ignoreDeps": [
|
"ignoreDeps": [
|
||||||
"core-js",
|
"core-js",
|
||||||
"memory-fs",
|
|
||||||
"execa",
|
|
||||||
"pify",
|
|
||||||
"file-loader",
|
|
||||||
"url-loader",
|
|
||||||
"sass-loader",
|
|
||||||
"css-loader",
|
|
||||||
"node-sass",
|
|
||||||
"postcss",
|
"postcss",
|
||||||
"postcss-import",
|
"postcss-import",
|
||||||
"postcss-loader",
|
"postcss-loader",
|
||||||
"postcss-url",
|
"postcss-url",
|
||||||
"thread-loader",
|
|
||||||
"fs-extra",
|
|
||||||
"chalk",
|
|
||||||
"wrap-ansi",
|
|
||||||
"terser-webpack-plugin",
|
"terser-webpack-plugin",
|
||||||
"@types/terser-webpack-plugin",
|
"@types/terser-webpack-plugin"
|
||||||
"defu"
|
|
||||||
],
|
],
|
||||||
"lockFileMaintenance": {
|
"lockFileMaintenance": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
@ -43,7 +43,7 @@ describe('with-config', () => {
|
|||||||
test('/ (preload fonts)', async () => {
|
test('/ (preload fonts)', async () => {
|
||||||
const { html } = await nuxt.server.renderRoute('/')
|
const { html } = await nuxt.server.renderRoute('/')
|
||||||
expect(html).toContain(
|
expect(html).toContain(
|
||||||
'<link rel="preload" href="/test/orion/fonts/roboto.7cf5d7c.woff2" as="font" type="font/woff2" crossorigin'
|
'<link rel="preload" href="/test/orion/fonts/roboto.dd02ea4.woff2" as="font" type="font/woff2" crossorigin'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user