Commit 7558431b authored by lipengcheng 's avatar lipengcheng

feat: x

parent ff6ed226
...@@ -11,9 +11,7 @@ export default { ...@@ -11,9 +11,7 @@ export default {
} }
</script> </script>
<style> <style>
.layout-default { /* .layout-default {
width: 375px;
margin: 0 auto; } */
visibility: hidden;
}
</style> </style>
...@@ -82,7 +82,6 @@ export default { ...@@ -82,7 +82,6 @@ export default {
'~/plugins/axios/index.js', '~/plugins/axios/index.js',
// '~/plugins/axios/index.bak.js', // '~/plugins/axios/index.bak.js',
'~/plugins/nuxt-client-init.client.js', '~/plugins/nuxt-client-init.client.js',
{ src: '@/plugins/vant-ui' },
{ src: '~/plugins/vconsole', mode: 'client' } { src: '~/plugins/vconsole', mode: 'client' }
], ],
...@@ -153,13 +152,9 @@ export default { ...@@ -153,13 +152,9 @@ export default {
buildDir: '.nuxt', buildDir: '.nuxt',
extendPlugins (plugins) { extendPlugins (plugins) {
if (process.env.ENV_MODE === 'pro') { // if (process.env.ENV_MODE === 'pro') {
const pluginIndex = plugins.findIndex( // return plugins
({ src }) => src === '~/plugins/vconsole' // }
)
pluginIndex !== -1 && plugins.splice(pluginIndex, 1)
return plugins
}
}, },
// Build Configuration (https://go.nuxtjs.dev/config-build) // Build Configuration (https://go.nuxtjs.dev/config-build)
...@@ -174,31 +169,6 @@ export default { ...@@ -174,31 +169,6 @@ export default {
ignoreOrder: true ignoreOrder: true
// allChunks: true, // allChunks: true,
}, },
postcss: {
plugins: {
'postcss-pxtorem': {
rootValue: 37.5,
propList: ['*']
}
}
},
transpile: [/^vant/],
babel: {
plugins: [
[
'import',
{
libraryName: 'vant',
// "libraryDirectory": "es",
style: true
},
'vant'
]
],
comments: true
},
extend (config, ctx) { extend (config, ctx) {
const { isDev, isClient } = ctx const { isDev, isClient } = ctx
if (isClient && process.env.ENV_MODE === 'pro') { if (isClient && process.env.ENV_MODE === 'pro') {
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
"lint-staged": "^10.5.3", "lint-staged": "^10.5.3",
"nuxt": "^2.14.6", "nuxt": "^2.14.6",
"swiper": "^3.4.2", "swiper": "^3.4.2",
"vant": "^2.11.1",
"vue-bus": "^1.2.1" "vue-bus": "^1.2.1"
}, },
"devDependencies": { "devDependencies": {
...@@ -61,7 +60,6 @@ ...@@ -61,7 +60,6 @@
"eslint-config-prettier": "^6.15.0", "eslint-config-prettier": "^6.15.0",
"eslint-plugin-nuxt": "^1.0.0", "eslint-plugin-nuxt": "^1.0.0",
"husky": "^4.3.0", "husky": "^4.3.0",
"postcss-pxtorem": "^5.1.1",
"prettier": "^2.1.2", "prettier": "^2.1.2",
"sass": "^1.29.0", "sass": "^1.29.0",
"sass-loader": "^10.1.0", "sass-loader": "^10.1.0",
...@@ -71,7 +69,6 @@ ...@@ -71,7 +69,6 @@
"stylelint-config-recess-order": "^2.3.0", "stylelint-config-recess-order": "^2.3.0",
"stylelint-config-sass-guidelines": "^7.1.0", "stylelint-config-sass-guidelines": "^7.1.0",
"stylelint-config-standard": "^20.0.0", "stylelint-config-standard": "^20.0.0",
"stylelint-selector-bem-pattern": "^2.1.0", "stylelint-selector-bem-pattern": "^2.1.0"
"vconsole": "^3.3.4"
} }
} }
import Vue from 'vue'
import { Button, Swipe, SwipeItem, Lazyload, Dialog, Loading } from 'vant'
Vue.use(Button)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Lazyload, {
lazyComponent: true
})
Vue.use(Loading)
Vue.use(Dialog)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment