Skip to content

Commit b8bd7bf

Browse files
committed
add
1 parent 571715e commit b8bd7bf

File tree

1 file changed

+2
-36
lines changed

1 file changed

+2
-36
lines changed

vue.config.js

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ module.exports = {
1414
// 指定子路径。比如,如果你的应用部署在
1515
// https://www.foobar.com/my-app/
1616
// 那么将这个值改为 `/my-app/`
17-
// baseUrl: '/',
18-
baseUrl: process.env.NODE_ENV === 'production' ? 'http://pbdg8wija.bkt.clouddn.com/build/js/' : '/',
17+
baseUrl: '/',
1918

2019
// 将构建好的文件输出到哪里
2120
outputDir: 'dist',
@@ -84,32 +83,8 @@ module.exports = {
8483
},
8584

8685
configureWebpack: config => {
87-
// console.log(config)
88-
// config.module.rules.push({
89-
// test: /\.svg$/,
90-
// loader: 'svg-sprite-loader',
91-
// include: [resolve('src/icons')],
92-
// // include: path.resolve(__dirname, './src/icons'),
93-
// options: {
94-
// symbolId: 'icon-[name]'
95-
// }}
96-
// );
97-
// config.module.rules.push({
98-
// test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
99-
// loader: 'url-loader',
100-
// exclude: [resolve('src/icons')]
101-
// // exclude: path.resolve(__dirname, './src/icons')
102-
// })
10386
if (process.env.NODE_ENV === 'production') {
10487
// 为生产环境修改配置...
105-
config.plugins.push(
106-
new QiniuPlugin({
107-
ACCESS_KEY: 'p87szI2jFSfB_qgln5eYV2ojKHMXtzKVKO4QFmMX',
108-
SECRET_KEY: '1TwlGTzlSeMuwBF_EaExc0z0VtpAvrtTiQ1OlyHF',
109-
bucket: 'stable',
110-
path: 'build/js/'
111-
})
112-
);
11388
if(process.env.npm_lifecycle_event === 'analyze'){
11489
config.plugins.push(
11590
new BundleAnalyzerPlugin()
@@ -126,13 +101,4 @@ module.exports = {
126101
pluginOptions: {
127102

128103
}
129-
}
130-
131-
// module.exports = {
132-
// chainWebpack: config => {
133-
// config.module
134-
// .rule('svg')
135-
// .use('file-loader')
136-
// .loader('svg-sprite-loader')
137-
// }
138-
// }
104+
}

0 commit comments

Comments
 (0)