Created
September 2, 2016 00:21
-
-
Save philmein23/bb86dbe59e654b53aee2795f2b815543 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 path = require('path'); | |
var webpack = require('webpack'); | |
var AureliaWebpackPlugin = require('aurelia-webpack-plugin') | |
module.exports = { | |
devtool: 'source-map', | |
entry: ['babel-polyfill', | |
'webpack-hot-middleware/client', | |
'./src/main' | |
], | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: 'bundle.js', | |
publicPath: '/static' | |
}, | |
plugins: [ | |
new webpack.HotModuleReplacementPlugin(), | |
new webpack.NoErrorsPlugin(), | |
new AureliaWebpackPlugin() | |
], | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
loaders: ['babel'], | |
include: path.join(__dirname, 'src') | |
}, | |
{ | |
test: /\.styl$/, | |
include: path.join(__dirname, 'src'), | |
loader: 'style-loader!css-loader!stylus-loader' | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment