You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Require Browsersync along with webpack and middleware for it */varbrowserSync=require('browser-sync');varwebpack=require('webpack');varwebpackDevMiddleware=require('webpack-dev-middleware');varwebpackHotMiddleware=require('webpack-hot-middleware');/** * Require ./webpack.config.js and make a bundler from it */varwebpackConfig=require('./webpack.dev.config');varbundler=webpack(webpackConfig);console.log(webpackConfig.output.publicPath);/** * Run Browsersync and use middleware for Hot Module Replacement */browserSync({server: {baseDir: 'app',middleware: [webpackDevMiddleware(bundler,{// IMPORTANT: dev middleware can't access config, so we should// provide publicPath by ourselvespublicPath: webpackConfig.output.publicPath,// pretty colored outputstats: {colors: true}// for other settings see// http://webpack.github.io/docs/webpack-dev-middleware.html}),// bundler should be the same as abovewebpackHotMiddleware(bundler)]},// no need to watch '*.js' here, webpack will take care of it for us,// including full page reloads if HMR won't workfiles: ['app/css/*.css','app/*.html']});
I am using webpack with the following config:
webpack.dev.config.js
When I do bundling with
webpack
cli its ok, but it doesnt load my bundles after bundling fromnode devserver.js
The text was updated successfully, but these errors were encountered: