Commit 081f3c08 authored by huanglu's avatar huanglu

feat: update

parent c1cdbc3b
......@@ -18,7 +18,7 @@ module.exports = {
'comma-style': [2, 'last'],// 逗号风格,换行时在行首还是行尾
quotes: [1, 'single'],
eqeqeq: 2,
'indent': [2, 2], // 强制使用一致的缩进
indent: [2, 2], // 强制使用一致的缩进
'no-var': 1,
'key-spacing': [2, { beforeColon: false, afterColon: true }],// 对象字面量中冒号的前后空格
semi: 0,
......@@ -29,6 +29,12 @@ module.exports = {
'no-unused-vars': 1,
'no-shadow': 0,
'import/extensions': 0,
'import/prefer-default-export': 1
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'no-underscore-dangle': 0,
'eol-last': 0,
'no-unused-expressions': 0,
'import/named': 0,
'import/no-named-as-default-member': 0
},
};
......@@ -19,4 +19,4 @@ function install(Vue) {
}
Vue.prototype.$errorNotify = errorNotify
}
export default install
\ No newline at end of file
export default install
......@@ -9,7 +9,7 @@
</div>
</template>
<script>
import { videoPlay } from "@/assets/images";
import { videoPlay } from '@/assets/images';
export default {
data() {
......
import Vue from 'vue';
import router from '@/router';
import Vue from 'vue';
import store from '@/store';
import { nativeBrige } from '@/plugins';
import ErrorNotify from '@/components/error-nofity'
......@@ -8,6 +8,7 @@ import {
} from 'vant';
import App from './App.vue';
Vue.config.productionTip = false;
Vue.use(Tag);
Vue.use(Button);
......
......@@ -6,8 +6,6 @@ const config = require('./config');
const resolve = (dir) => path.join(__dirname, dir);
console.log('skeletonRoutes : ', config.skeletonRoutes)
module.exports = {
configureWebpack: (wpConfig) => {
const plugins = [];
......@@ -21,12 +19,13 @@ module.exports = {
chainWebpack: (config) => {
if (process.env.NODE_ENV !== 'development') {
config.plugin('html').tap((opts) => {
opts[0].minify.removeComments = false
if (opts && opts[0] && opts[0].minify) {
opts[0].minify.removeComments = false
}
return opts
})
}
},
css: {
loaderOptions: {
postcss: {
......
......@@ -9344,6 +9344,11 @@ vary@~1.1.2:
resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
vconsole@^3.3.4:
version "3.3.4"
resolved "http://git.jksxb.cn:8081/repository/geek/vconsole/-/vconsole-3.3.4.tgz#a7dacd8887b3d3e902e8d18425cda56c34e77f51"
integrity sha1-p9rNiIez0+kC6NGEJc2lbDTnf1E=
vendors@^1.0.0:
version "1.0.4"
resolved "https://registry.npm.taobao.org/vendors/download/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e"
......
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