Skip to content
Snippets Groups Projects
Commit 29cb6ac9 authored by Jure's avatar Jure
Browse files

Simplify Webpack server

parent c86f21e6
No related branches found
No related tags found
No related merge requests found
......@@ -11,21 +11,8 @@ var webpackConfig = require('../webpack/webpack.dev.config.js')
module.exports = function () {
// Fire up webpack and pass in the configuration file we created
var bundleStart = null
var compiler = webpack(webpackConfig)
// Give notice to the terminal when it starts bundling
// and set the time it started
compiler.plugin('compile', function () {
console.log('Bundling ...')
bundleStart = Date.now()
})
// Give notice when it is done compiling, including the time it took.
compiler.plugin('done', function () {
console.log('Bundled in ' + (Date.now() - bundleStart) + 'ms!')
})
var bundler = new webpackDevServer(compiler, {
// Tell webpack to serve our bundled application from the build path. When proxying:
// http://localhost:3000/assets -> http://localhost:3001/assets
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment