I want to change styling in css file and change the layout in my html file but the changes doesn’t show up . I have already setup wetback.
This is my webpack.config.js file
//require node module path
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
//define our entry file and output path where we want the bundle file to be in
module.exports = {
entry: ['./src/js/index.js'],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'js/bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: './src/index.html'
})
],
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}]
}
}