我一直无法找到解决方案:-S
当然是一个基本的问题,但它打破了我的想法。
我有一个非常简单的带有 VUE 和 VUETIFY 的应用程序。我一直在使用 vuetify 示例中的一些网格类,例如.col-md-6
当我使用npm run serve运行 te app 时,一切正常,但是当我运行npm run build时,这些类根本不起作用。我一直在寻找那些款式,但它们都不见了。头部有一些vuetify样式不完整,可能就是这个问题...
在我的 package.json 上,我没有什么特别之处,但可能我遗漏了一些东西。感谢您的帮助:
"name": "ecosecha",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuetify": "^2.2.15"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.2.3",
"@vue/cli-plugin-eslint": "^4.2.3",
"@vue/cli-plugin-router": "^4.2.3",
"@vue/cli-service": "^4.2.3",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"node-sass": "^4.13.1",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
"vue-cli-plugin-vuetify": "~2.0.5",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.3.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
这是我的公开回购,也许会有所帮助:https ://github.com/lopandpe/ecosecha
谢谢!