|
|
@@ -1,3 +1,4 @@
|
|
|
+var 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/')
|
|
|
@@ -68,6 +69,15 @@ module.exports = {
|
|
|
'~plugins': path.join(__dirname, 'plugins'),
|
|
|
'~store': path.join(__dirname, 'store')
|
|
|
})
|
|
|
+ console.log( config.plugins)
|
|
|
+ config.plugins.push(new HtmlWebpackPlugin({
|
|
|
+ title: 'React Title !',
|
|
|
+ template: './app.html',
|
|
|
+ minify: {
|
|
|
+ removeAttributeQuotes: true
|
|
|
+ },
|
|
|
+ inject: 'body'
|
|
|
+ }))
|
|
|
// config.resolve.alias['~utils'] = path.join(__dirname, 'utils')
|
|
|
// config.resolve.alias['~components'] = path.join(__dirname, 'components')
|
|
|
// config.resolve.alias['assets'] = path.join(__dirname, './assets')
|