处理打包失败问题
This commit is contained in:
parent
8efd57074d
commit
21b5f87d63
9
.babelrc
Normal file
9
.babelrc
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"compact": false,
|
||||
"presets": [
|
||||
["@nuxt/babel-preset-app", {
|
||||
"useBuiltIns": "entry"
|
||||
}]
|
||||
],
|
||||
"plugins": []
|
||||
}
|
5
.banelrc
5
.banelrc
@ -1,5 +0,0 @@
|
||||
{
|
||||
"compact": false,
|
||||
"presets": ["@babel/preset-env", "@vue/babel-preset-jsx"],
|
||||
"plugins": ["@babel/transform-runtime"]
|
||||
}
|
@ -65,6 +65,9 @@ export default {
|
||||
'nuxt-sass-resources-loader',
|
||||
'bootstrap-vue/nuxt',
|
||||
],
|
||||
bootstrapVue: {
|
||||
icons: false
|
||||
},
|
||||
router: {
|
||||
middleware: 'i18n'
|
||||
},
|
||||
@ -73,6 +76,7 @@ export default {
|
||||
*/
|
||||
distDir: 'build',
|
||||
build: {
|
||||
postcss: null,
|
||||
/*
|
||||
** You can extend webpack config here
|
||||
*/
|
||||
@ -84,11 +88,31 @@ export default {
|
||||
jQuery: "jquery",
|
||||
"windows.jQuery": "jquery",
|
||||
'root.jQuery': 'jquery'
|
||||
})
|
||||
}),
|
||||
],
|
||||
babel: {
|
||||
compact: false,
|
||||
configFile: false,
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'@nuxt/babel-preset-app',
|
||||
{
|
||||
useBuiltIns: 'entry',
|
||||
corejs: 3
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: [
|
||||
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
||||
["@babel/plugin-proposal-class-properties", { "loose": true }],
|
||||
["@babel/plugin-proposal-private-methods", { "loose": true }],
|
||||
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
|
||||
]
|
||||
},
|
||||
transpile: [
|
||||
'bootstrap-vue',
|
||||
],
|
||||
]
|
||||
},
|
||||
generate: {
|
||||
routes: [
|
||||
|
13602
package-lock.json
generated
13602
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@ -15,23 +15,28 @@
|
||||
"@chenfengyuan/vue-countdown": "^1.1.5",
|
||||
"@nuxtjs/axios": "^5.12.2",
|
||||
"@nuxtjs/i18n": "^7.3.1",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"bootstrap": "^4.1.3",
|
||||
"bootstrap-vue": "^2.0.0-rc.11",
|
||||
"bootstrap-vue": "^2.23.1",
|
||||
"cookie-universal-nuxt": "^2.1.4",
|
||||
"core-js": "^3.28.0",
|
||||
"core-js": "^3.43.0",
|
||||
"dayjs": "^1.11.7",
|
||||
"jquery": "^3.4.1",
|
||||
"lru-cache": "^7.18.3",
|
||||
"nuxt": "^2.14.0",
|
||||
"nuxt": "2.15.0",
|
||||
"nuxt-sass-resources-loader": "^2.0.5",
|
||||
"patch-package": "^6.4.7",
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-component": "^1.1.1",
|
||||
"@babel/core": "^7.18.10",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-decorators": "^7.18.10",
|
||||
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
||||
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
||||
"@nuxt/babel-preset-app": "^2.17.0",
|
||||
"@nuxtjs/style-resources": "^1.2.2",
|
||||
"babel-loader": "^8.2.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"node-sass": "^4.14.1",
|
||||
"sass": "^1.53.0",
|
||||
"sass-loader": "^10.0.2"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
import 'babel-polyfill'
|
||||
// import 'babel-polyfill'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user