Skip to content

Commit acf8dc5

Browse files
adds to webpack.
1 parent 1a55d7f commit acf8dc5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webpack.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const path = require('path')
32
const HtmlWebpackPlugin = require('html-webpack-plugin')
43

@@ -8,7 +7,7 @@ module.exports = {
87
output: {
98
filename: 'index.js',
109
publicPath: '/',
11-
path: path.resolve(__dirname, 'dist'),
10+
path: path.resolve(__dirname, 'public'),
1211
},
1312
devtool: 'source-map',
1413
plugins: [
@@ -17,7 +16,7 @@ module.exports = {
1716
}),
1817
],
1918
devServer: {
20-
contentBase: path.join(__dirname, 'dist'),
19+
contentBase: path.join(__dirname, 'public'),
2120
compress: true,
2221
historyApiFallback: true,
2322
port: 3000,

0 commit comments

Comments
 (0)