on-internet
← Community

Webpack dev server cache clearing

Stack Overflow ·

I can't get webpack dev server to work properly. I think the issue is the compiled code it makes in memory is not clearing. I can't work out where I'm going wrong. My config file is: var path = require('path'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: ['babel-polyfill', './src/js/index.js'], output: { path: path.join(__dirname, 'dist'), publicPath: "/", filename: 'js/index.js' }, devServer: { contentBase: '/dist' }, module: { rules: [ { test: /\.js$/, use: ['babel-loader'] }, { test: /\.

Comments

Sign in or sign up to comment and upvote.

No comments yet.