1
0
mirror of synced 2025-12-23 21:03:26 -05:00

fixed issue of prod build

This commit is contained in:
Omkar Yadav
2019-07-20 12:42:00 +05:30
parent de031c61e2
commit 6189bc830e
3 changed files with 4 additions and 3 deletions

View File

@@ -1 +1,2 @@
import './style.scss'; import './style.scss';

View File

@@ -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(),

View File

@@ -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;