Bladeren bron

upload

rtc
HolyKnightIX 1 jaar geleden
bovenliggende
commit
3e52dee699
5 gewijzigde bestanden met toevoegingen van 281 en 275 verwijderingen
  1. BIN
      node_modules.rar
  2. +42
    -42
      package.json
  3. +1
    -0
      src/components/home/home.vue
  4. +77
    -77
      vue.config.js
  5. +161
    -156
      yarn.lock

BIN
node_modules.rar Bestand weergeven


+ 42
- 42
package.json Bestand weergeven

@@ -1,42 +1,42 @@
{
"name": "Metavatar",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve --mode development",
"build": "vue-cli-service build --mode test",
"build-test": "vue-cli-service build --mode test",
"build-prd": "vue-cli-service build --mode production"
},
"dependencies": {
"axios": "0.18.1",
"element-ui": "^2.15.12",
"file-saver": "^2.0.5",
"franc": "^6.1.0",
"image-webpack-loader": "^8.1.0",
"install": "^0.13.0",
"lib-flexible": "^0.3.2",
"mic-recorder-to-mp3": "^2.2.2",
"postcss-px2rem": "^0.3.0",
"register-service-worker": "^1.7.1",
"swiper": "^4.5.1",
"vant": "^2.12.48",
"vue": "^2.6.11",
"vue-cropper": "^0.5.11",
"vue-router": "^3.2.0",
"vue-waterfall2": "^1.10.6",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-pwa": "~4.5.13",
"@vue/cli-plugin-router": "~4.5.13",
"@vue/cli-plugin-vuex": "~4.5.13",
"@vue/cli-service": "~4.5.13",
"compression-webpack-plugin": "5.0.1",
"node-sass": "^6.0.1",
"sass": "^1.60.0",
"sass-loader": "^7.0.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"vue-template-compiler": "^2.6.11"
}
}
{
"name": "Metavatar",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve --mode development",
"build": "vue-cli-service build --mode test",
"build-test": "vue-cli-service build --mode test",
"build-prd": "vue-cli-service build --mode production"
},
"dependencies": {
"axios": "0.18.1",
"element-ui": "^2.15.12",
"file-saver": "^2.0.5",
"franc": "^6.1.0",
"image-webpack-loader": "^8.1.0",
"install": "^0.13.0",
"lib-flexible": "^0.3.2",
"mic-recorder-to-mp3": "^2.2.2",
"postcss-px2rem": "^0.3.0",
"register-service-worker": "^1.7.1",
"swiper": "^4.5.1",
"vant": "^2.12.48",
"vue": "^2.6.11",
"vue-cropper": "^0.5.11",
"vue-router": "^3.2.0",
"vue-waterfall2": "^1.10.6",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-pwa": "~4.5.13",
"@vue/cli-plugin-router": "~4.5.13",
"@vue/cli-plugin-vuex": "~4.5.13",
"@vue/cli-service": "~4.5.13",
"compression-webpack-plugin": "5.0.1",
"node-sass": "^6.0.1",
"sass": "^1.60.0",
"sass-loader": "^7.0.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"vue-template-compiler": "^2.6.11"
}
}

+ 1
- 0
src/components/home/home.vue Bestand weergeven

@@ -13,6 +13,7 @@
</div>
</div>
<!-- isVX && videoPlayBtn -->
<div class="module_1">
<!-- <video id="video" ref="vidoe" src="../../assets/video/1.mp4" width="100%" height="100%" autoplay muted="muted" loop="loop" /> -->
<!-- <video ref="vidoe" src="https://video.metavatar.cc/sv/d51a6f6-187fa2dff79/d51a6f6-187fa2dff79.mp4" width="100%" height="100%" autoplay muted="muted" loop="loop" /> -->


+ 77
- 77
vue.config.js Bestand weergeven

@@ -45,11 +45,11 @@ module.exports = {
filename: `js/js[name].${timeStamp}.js`,
chunkFilename: `js/chunk.[id].${timeStamp}.js`,
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
externals,
},
css: {
@@ -57,70 +57,70 @@ module.exports = {
filename: `css/[name].${timeStamp}.css`,
chunkFilename: `css/chunk.[id].${timeStamp}.css`,
},
loaderOptions: {
css: {
},
// postcss: {
// // options here will be passed to postcss-loader
// plugins: [require('postcss-px2rem')({
// remUnit: 75
// })]
// }
}
},
loaderOptions: {
css: {
},
// postcss: {
// // options here will be passed to postcss-loader
// plugins: [require('postcss-px2rem')({
// remUnit: 75
// })]
// }
}
},

pwa: {
iconPaths: {
favicon32: 'favicon.ico',
favicon16: 'favicon.ico',
appleTouchIcon: 'favicon.ico',
maskIcon: 'favicon.ico',
msTileImage: 'favicon.ico'
}
pwa: {
iconPaths: {
favicon32: 'favicon.ico',
favicon16: 'favicon.ico',
appleTouchIcon: 'favicon.ico',
maskIcon: 'favicon.ico',
msTileImage: 'favicon.ico'
}
},
//http://www.metavatar.cc/
devServer: {
overlay: {
warnings: false,
errors: false
},
//http://www.metavatar.cc/
devServer: {
overlay: {
warnings: false,
errors: false
proxy: {
'/api': {
// target: 'https://smapitestmalls,iformall.com/C/api',
target: process.env.VUE_APP_API_ROOT + '/api',
changeOrigin: true,
pathRewrite: {
'^/api': ''
},
proxy: {
'/api': {
// target: 'https://smapitestmalls,iformall.com/C/api',
target: process.env.VUE_APP_API_ROOT+'/api',
changeOrigin: true,
pathRewrite: {
'^/api': ''
},
},
},

}
},
lintOnSave: false,
publicPath: './', // 打包后引用的资源路径
}
},
lintOnSave: false,
publicPath: './', // 打包后引用的资源路径

chainWebpack: config => {
// favicon图标
config.plugin('html').tap(args => {
args[0].favicon = './public/favicon.ico';
return args;
});
// 注入cdn变量 (打包时会执行)
config.plugin('html').tap(args => {
args[0].cdn = cdn // 配置cdn给插件
return args
})
// 图片路径
config.module.rule('images')
// favicon图标
config.plugin('html').tap(args => {
args[0].favicon = './public/favicon.ico';
return args;
});
// 注入cdn变量 (打包时会执行)
config.plugin('html').tap(args => {
args[0].cdn = cdn // 配置cdn给插件
return args
})
// 图片路径
config.module.rule('images')
.use('url-loader')
.tap(options => ({
name: './assets/images/[name].[ext]',
quality: 85,
limit: 0,
esModule: false,
name: './assets/images/[name].[ext]',
quality: 85,
limit: 0,
esModule: false,
}))
//图片压缩
config.module
//图片压缩
config.module
.rule('images')
.use('image-webpack-loader')
.loader('image-webpack-loader')
@@ -144,9 +144,9 @@ module.exports = {
}
})
.end();
// 压缩js,只能线上,本地会js访问错误,会将js压缩成.gz文件
if (process.env.VUE_APP_ENV != 'development') {
if (process.env.VUE_APP_ENV != 'development') {
config.plugin('compression-webpack-plugin').use(new CompressionWebpackPlugin({
test: /\.(js|css|scss|woff|woff2|ttf)$/, // 匹配文件名
threshold: 20480, // 对超过20k的数据压缩
@@ -164,19 +164,19 @@ module.exports = {
}


}
// configureWebpack: {
// plugins: [
// //打包环境去掉console.log
// new UglifyJsPlugin({
// uglifyOptions: {
// compress: {
// drop_console: true, //注释console
// drop_debugger: true, //注释debugger
// pure_funcs: ['console.log'], //移除console.log
// },
// },
// }),
// ],
// }
}
// configureWebpack: {
// plugins: [
// //打包环境去掉console.log
// new UglifyJsPlugin({
// uglifyOptions: {
// compress: {
// drop_console: true, //注释console
// drop_debugger: true, //注释debugger
// pure_funcs: ['console.log'], //移除console.log
// },
// },
// }),
// ],
// }
}

+ 161
- 156
yarn.lock
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


Laden…
Annuleren
Opslaan