|
@@ -1,3 +1,4 @@
|
|
|
+const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
const path = require('path')
|
|
|
const isProdMode = Object.is(process.env.NODE_ENV, 'production')
|
|
|
const baseUrl = process.env.BASE_URL || (isProdMode ? 'https://sso.ubtob.com/' : 'https://test-sso-server.uuzcc.cn/')
|
|
@@ -11,39 +12,46 @@ module.exports = {
|
|
|
mode: 'out-in'
|
|
|
},
|
|
|
|
|
|
- ** Headers of the page
|
|
|
- */
|
|
|
+ ** Headers of the page
|
|
|
+ */
|
|
|
head: {
|
|
|
title: '账户中心',
|
|
|
- meta: [
|
|
|
- { charset: 'utf-8' },
|
|
|
- { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
|
|
|
- { name: 'render', content: 'webkit' },
|
|
|
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
- { hid: 'description', name: 'description', content: '账户中心' }
|
|
|
+ meta: [{
|
|
|
+ charset: 'utf-8'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 'http-equiv': 'X-UA-Compatible',
|
|
|
+ content: 'IE=edge,chrome=1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'render',
|
|
|
+ content: 'webkit'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'viewport',
|
|
|
+ content: 'width=device-width, initial-scale=1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ hid: 'description',
|
|
|
+ name: 'description',
|
|
|
+ content: '账户中心'
|
|
|
+ }
|
|
|
],
|
|
|
- link: [
|
|
|
- { rel: 'icon', type: 'image/x-icon', href: '/U.png' }
|
|
|
- ]
|
|
|
+ link: [{
|
|
|
+ rel: 'icon',
|
|
|
+ type: 'image/x-icon',
|
|
|
+ href: '/U.png'
|
|
|
+ }]
|
|
|
},
|
|
|
|
|
|
- ** Customize the progress-bar color
|
|
|
- */
|
|
|
+ ** Customize the progress-bar color
|
|
|
+ */
|
|
|
loading: '~components/common/nuxt-loading/Loading.vue',
|
|
|
|
|
|
- ** Build configuration
|
|
|
- */
|
|
|
+ ** Build configuration
|
|
|
+ */
|
|
|
build: {
|
|
|
|
|
|
- ** Run ESLINT on save
|
|
|
- */
|
|
|
- extractCSS: { allChunks: true },
|
|
|
- extend (config, { dev, isClient, isServer }) {
|
|
|
- config.resolve.alias['~utils'] = path.join(__dirname, 'utils')
|
|
|
- config.resolve.alias['~components'] = path.join(__dirname, 'components')
|
|
|
- config.resolve.alias['~assets'] = path.join(__dirname, 'assets')
|
|
|
- config.resolve.alias['~plugins'] = path.join(__dirname, 'plugins')
|
|
|
- config.resolve.alias['~store'] = path.join(__dirname, 'store')
|
|
|
** Run ESLINT on save
|
|
|
*/
|
|
|
extractCSS: {
|
|
@@ -115,9 +123,9 @@ module.exports = {
|
|
|
|
|
|
},
|
|
|
css: [{
|
|
|
- src: '~assets/scss/mobileCommon.scss',
|
|
|
- lang: 'scss'
|
|
|
- },
|
|
|
+ src: '~assets/scss/mobileCommon.scss',
|
|
|
+ lang: 'scss'
|
|
|
+ },
|
|
|
{
|
|
|
src: '~assets/scss/app.scss',
|
|
|
lang: 'scss'
|