Mode: isProd ? 'production' : isDev & 'development',įilename: isDev ? 'script/script.js' : 'script/bundle-.js',ĬontentBase: path. note livereload will only track files that it sees when you first start the gulp task. This software is no longer being maintainted and should not be chosen for new projects. const path = require('path') Ĭonst HtmlWebpackPlugin = require('html-webpack-plugin') Ĭonst MiniCssExtractPlugin = require('mini-css-extract-plugin') Ĭonst autoprefixer = require('autoprefixer') I updated webpack 4 to webpack 5, after which everything works, except for updating the browser (live reload) who can tell the reason? here is my config. I was having a similar issue of live reload 'not working': webpack would detect the changes to my code, but when it reloaded the page, the old version of the UI would still be displayed.
0 Comments
Leave a Reply. |