修改点击申请的提示样式
This commit is contained in:
@@ -11,13 +11,16 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||
|
||||
const port = 9526
|
||||
const publicPath = config.publicPath
|
||||
const mountPath = typeof publicPath === 'string' && publicPath.endsWith('/')
|
||||
? publicPath.slice(0, -1)
|
||||
: publicPath
|
||||
|
||||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
const app = connect()
|
||||
|
||||
app.use(
|
||||
publicPath,
|
||||
mountPath,
|
||||
serveStatic('./dist', {
|
||||
index: ['index.html', '/']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user