Skip to content

Commit d52dafc

Browse files
author
Paulo Rezende
committed
Move webpack config files to a folder
1 parent c7b9226 commit d52dafc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
]
4040
},
4141
plugins: [
42-
new CleanWebpackPlugin(['dist']),
42+
new CleanWebpackPlugin(['dist'], { root: path.resolve() }),
4343
new HtmlWebpackPlugin({
4444
template: './statik/index.html'
4545
})

webpack.dev.js renamed to webpack/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = merge(common, {
1818
},
1919
{
2020
test: /\.(gif|jpg|png|svg|ico)$/,
21-
include: path.resolve(__dirname, 'statik/images'),
21+
include: path.resolve('statik', 'images'),
2222
use: ['file-loader']
2323
}
2424
]

webpack.prod.js renamed to webpack/webpack.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = merge(common, {
4040
},
4141
{
4242
test: /\.(gif|jpg|png|svg|ico)$/,
43-
include: path.resolve(__dirname, 'statik/images'),
43+
include: path.resolve('statik', 'images'),
4444
use: [
4545
{
4646
loader: 'file-loader',

0 commit comments

Comments
 (0)