|
@@ -1,7 +1,21 @@
|
|
const webpack = require('webpack')
|
|
const webpack = require('webpack')
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
|
|
|
|
|
|
+let publicPath = ''
|
|
|
|
+switch (process.env.NODE_ENV) {
|
|
|
|
+case 'development':
|
|
|
|
+ publicPath = '/'
|
|
|
|
+ break
|
|
|
|
+case 'production':
|
|
|
|
+ publicPath = '/one_day_in_southern_song_dynasty/'
|
|
|
|
+ break
|
|
|
|
+default:
|
|
|
|
+ publicPath = '/'
|
|
|
|
+ break
|
|
|
|
+}
|
|
|
|
+
|
|
module.exports = defineConfig({
|
|
module.exports = defineConfig({
|
|
|
|
+ publicPath,
|
|
// transpileDependencies: true,
|
|
// transpileDependencies: true,
|
|
configureWebpack: {
|
|
configureWebpack: {
|
|
module: {
|
|
module: {
|