Commit 824fba51 authored by yyh's avatar yyh

vant 样式处理

parent a0b596dd
module.exports = { module.exports = {
presets: [ presets: [
'@vue/cli-plugin-babel/preset' '@vue/cli-plugin-babel/preset'
],
plugins: [
['import', {
libraryName: 'vant',
libraryDirectory: 'es',
style: true
}, 'vant']
] ]
} }
\ No newline at end of file
...@@ -2226,6 +2226,16 @@ ...@@ -2226,6 +2226,16 @@
"object.assign": "^4.1.0" "object.assign": "^4.1.0"
} }
}, },
"babel-plugin-import": {
"version": "1.13.0",
"resolved": "https://registry.npmjs.org/babel-plugin-import/-/babel-plugin-import-1.13.0.tgz",
"integrity": "sha512-bHU8m0SrY89ub2hBBuYjbennOeH0YUYkVpH6jxKFk0uD8rhN+0jNHIPtXnac+Vn7N/hgkLGGDcIoYK7je3Hhew==",
"dev": true,
"requires": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/runtime": "^7.0.0"
}
},
"babel-polyfill": { "babel-polyfill": {
"version": "6.26.0", "version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
"@vue/cli-plugin-babel": "^4.3.0", "@vue/cli-plugin-babel": "^4.3.0",
"@vue/cli-plugin-typescript": "^4.3.0", "@vue/cli-plugin-typescript": "^4.3.0",
"@vue/cli-service": "^4.3.0", "@vue/cli-service": "^4.3.0",
"babel-plugin-import": "^1.13.0",
"postcss-px-to-viewport": "^1.1.1", "postcss-px-to-viewport": "^1.1.1",
"sass": "^1.26.3", "sass": "^1.26.3",
"sass-loader": "^8.0.2", "sass-loader": "^8.0.2",
......
...@@ -19,7 +19,7 @@ import VueClipboard from 'vue-clipboard2'; ...@@ -19,7 +19,7 @@ import VueClipboard from 'vue-clipboard2';
Vue.use(VueClipboard); Vue.use(VueClipboard);
import { Lazyload } from 'vant'; import { Lazyload } from 'vant';
import 'vant/lib/index.css'; // import 'vant/lib/index.css';
Vue.use(Lazyload); Vue.use(Lazyload);
import Component from 'vue-class-component'; import Component from 'vue-class-component';
......
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