Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // configuration. Pass in your the path to your own file or it defaults to a default one
- config = {
- entry: default_entries,
- performance:{
- hints:false
- },
- output:{
- path:OUTPUT,
- filename:"app.js",
- publicPath:"/"
- },
- module:{
- loaders:[
- {
- test:/\.js$/,
- exclude:/node_modules/,
- loaders:[
- __dirname + '/node_modules/babel-loader'
- ]
- }
- ]
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin(),
- new webpack.NamedModulesPlugin()
- ]
- }
- /// SERVER
- var server = new WebpackServer(compiler,{
- hot:HOTLOAD,
- noInfo:true,
- contentBase:path.resolve(`${__dirname}/../`,DIST),
- publicPath:"/",
- stats:{
- errors:true,
- hash:false,
- version:false,
- assets:false,
- timings:false,
- chunks:false
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement