Skip to content

Commit f254fa4

Browse files
author
Paulo Rezende
committed
Move Webpack configs to a folder
1 parent b53dfb7 commit f254fa4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = (env) => {
2-
const config = require(`./webpack.${env.env}`);
2+
const config = require(`./webpack/webpack.${env.env}`);
33

44
return config;
55
};

webpack.common.js renamed to webpack/webpack.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
},
88
output: {
99
filename: '[name].bundle.js',
10-
path: path.join(__dirname, './build/public')
10+
path: path.join(__dirname, '../build/public')
1111
},
1212
module: {
1313
rules: [
@@ -35,7 +35,7 @@ module.exports = {
3535
]
3636
},
3737
{
38-
test: /\.(gif|jpg|png|svg)$/,
38+
test: /\.(gif|jpg|png|svg|ico)$/,
3939
use: [
4040
{
4141
loader: 'file-loader',
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)