1
0
mirror of synced 2025-12-19 10:00:37 -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';

View File

@@ -8,7 +8,7 @@ const Dotenv = require('dotenv-webpack');
const commonConfig = (entryPoint) => ({
entry: `./src/${entryPoint}/index.ts`,
resolve: {
extensions: ['.ts', '.tsx', '.js']
extensions: ['.ts', '.js']
},
module: {
rules: [
@@ -69,7 +69,7 @@ const commonConfig = (entryPoint) => ({
plugins: [
new CleanWebpackPlugin(),
new webpack.BannerPlugin({
banner: () => `Copyright ${new Date().getFullYear()}`,
banner: () => `F4ERP Copyright ${new Date().getFullYear()}`,
}),
new webpack.EnvironmentPlugin({}),
new Dotenv(),

View File

@@ -7,4 +7,4 @@ for (const config of devConfig) {
config.plugins.push(new UglifyJSPlugin());
}
app.exports = devConfig;
module.exports = devConfig;