Skip to content

Instantly share code, notes, and snippets.

@philmein23
Created September 2, 2016 00:21
Show Gist options
  • Save philmein23/bb86dbe59e654b53aee2795f2b815543 to your computer and use it in GitHub Desktop.
Save philmein23/bb86dbe59e654b53aee2795f2b815543 to your computer and use it in GitHub Desktop.
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