summaryrefslogtreecommitdiff
path: root/webpackBaseConfig.js
diff options
context:
space:
mode:
authorMax Wu2017-01-21 14:31:41 +0800
committerGitHub2017-01-21 14:31:41 +0800
commit6dfc186691df7b5c63af2ee5eb28cd1e1919050c (patch)
tree58c36e54788224c8ee4ee803a6a3b2c1dbd7b8b2 /webpackBaseConfig.js
parentfc00fa74341a43b2f99b085aa52fee57f40082ff (diff)
parent0e479111e55354434b5100ae165627f5fabe06b5 (diff)
Merge pull request #326 from hackmdio/es6-integration
ES6 integration
Diffstat (limited to 'webpackBaseConfig.js')
-rw-r--r--webpackBaseConfig.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index 496afce4..210001b1 100644
--- a/webpackBaseConfig.js
+++ b/webpackBaseConfig.js
@@ -373,6 +373,10 @@ module.exports = {
test: /\.json$/,
loader: 'json-loader'
}, {
+ test: /\.js$/,
+ loader: 'babel',
+ exclude: [/node_modules/, /public\/vendor/]
+ }, {
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
}, {