Last active
August 11, 2016 01:06
-
-
Save pr1ntr/5417675f396709871929be77f600af6a 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
{ | |
entry: { | |
app: [path.normalize(`${cwd}/src/js/app.js`)], | |
vendor: vendors | |
}, | |
output: { | |
path: path.normalize(`${cwd}/public/js`), | |
publicPath: '/js/', | |
filename: '[name].js', | |
chunkFilename: '[name].[id].js' | |
} | |
} | |
const config = require('./webpack.config.dev.js'); | |
const webpack = require('webpack'); | |
const webpackDevServer = require('webpack-dev-server'); | |
const compiler = webpack(config); | |
const server = new webpackDevServer(compiler, { | |
hot: true, | |
contentBase: 'public/', | |
}); | |
server.listen(3004, 'localhost', () => { | |
console.log('listening'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment