Skip to content

Commit

Permalink
Babel decorator support
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwheeler committed Jul 1, 2015
1 parent 4ebb4ac commit 12831ca
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
var getConfig = require('hjs-webpack')
var config = require('./presentation/config');

module.exports = getConfig({
var webpackConfig = getConfig({
in: './index.jsx',
out: 'dist',
clearBeforeBuild: true,
html: config.html
});
});

webpackConfig.module.loaders[0] = {
test: /(\.js$)|(\.jsx$)/,
exclude: /node_modules/,
loaders: [
'babel-loader?stage=1'
]
}

module.exports = webpackConfig;

0 comments on commit 12831ca

Please sign in to comment.