fixed issue of prod build
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
import './style.scss';
|
import './style.scss';
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const Dotenv = require('dotenv-webpack');
|
|||||||
const commonConfig = (entryPoint) => ({
|
const commonConfig = (entryPoint) => ({
|
||||||
entry: `./src/${entryPoint}/index.ts`,
|
entry: `./src/${entryPoint}/index.ts`,
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.ts', '.tsx', '.js']
|
extensions: ['.ts', '.js']
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -69,7 +69,7 @@ const commonConfig = (entryPoint) => ({
|
|||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new webpack.BannerPlugin({
|
new webpack.BannerPlugin({
|
||||||
banner: () => `Copyright ${new Date().getFullYear()}`,
|
banner: () => `F4ERP Copyright ${new Date().getFullYear()}`,
|
||||||
}),
|
}),
|
||||||
new webpack.EnvironmentPlugin({}),
|
new webpack.EnvironmentPlugin({}),
|
||||||
new Dotenv(),
|
new Dotenv(),
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ for (const config of devConfig) {
|
|||||||
config.plugins.push(new UglifyJSPlugin());
|
config.plugins.push(new UglifyJSPlugin());
|
||||||
}
|
}
|
||||||
|
|
||||||
app.exports = devConfig;
|
module.exports = devConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user