htaccess for routing #2054
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
'use strict'
|
||||
|
||||
const webpack = require('webpack')
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const merge = require('webpack-merge')
|
||||
const baseConfig = require('./webpack.config.base')
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||
|
||||
const utils = require('./utils')
|
||||
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
|
||||
// ERROR in vendor.js from UglifyJs
|
||||
// RangeError: Maximum call stack size exceeded
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
mode: 'production',
|
||||
// resolve: {
|
||||
// alias: {
|
||||
// 'static': utils.resolve('static')
|
||||
// }
|
||||
// },
|
||||
output: {
|
||||
publicPath: '/'
|
||||
},
|
||||
@@ -66,6 +74,11 @@ module.exports = merge(baseConfig, {
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
"process.env": "'prod'"
|
||||
})
|
||||
}),
|
||||
new CopyWebpackPlugin([{
|
||||
from: utils.resolve('static/.htaccess'),
|
||||
to: utils.resolve('dist/.htaccess'),
|
||||
toType: 'file'
|
||||
}])
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user