Created
November 2, 2016 11:30
-
-
Save prateekbh/c6246a862f1d204fc75226e74e1f8ef6 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
var webpack = require('webpack'); | |
module.exports = { | |
entry: './index', | |
output: { | |
path: __dirname + '/public', | |
publicPath: '/public/', | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
loader: 'babel-loader', | |
query: { presets: ['es2015'] } | |
}, | |
{ | |
test: /\.tag$/, | |
loader: 'tag' | |
} | |
] | |
}, | |
devServer: { | |
contentBase: '/public' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment