Last active
January 15, 2017 16:16
-
-
Save notgiorgi/3e5e8f56719b84780d1864ab5b992874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack') | |
const WebpackDevServer = require('webpack-dev-server') | |
// your wp config lives here | |
const config = require('./webpack.config') | |
new WebpackDevServer(webpack(config), { | |
publicPath: config.output.publicPath, | |
hot: true, | |
historyApiFallback: true, | |
}).listen(1337, 'localhost', (err, result) => { | |
if (err) { | |
return console.log(err) | |
} | |
console.log('Listening at http://localhost:1337/') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment