Skip to content

Commit

Permalink
[chore] added babel-cli to compile and fix dist configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Oct 4, 2017
1 parent 876972b commit ace2bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
],
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.25.0",
"babel-eslint": "^8.0.0",
"babel-loader": "^7.1.2",
Expand Down
7 changes: 4 additions & 3 deletions webpack.dist.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var webpack = require('webpack');
var path = require('path');
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;

var reactExternal = {
Expand Down Expand Up @@ -29,7 +30,7 @@ module.exports = {
output: {
filename: '[name].js',
chunkFilename: '[id].chunk.js',
path: 'dist',
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
libraryTarget: 'umd',
library: 'ReactModal'
Expand All @@ -49,8 +50,8 @@ module.exports = {
],

module: {
loaders: [
{ test: /\.js?$/, exclude: /node_modules/, loader: 'babel'}
rules: [
{ test: /\.js?$/, exclude: /node_modules/, use: { loader: 'babel-loader' } }
]
}

Expand Down

0 comments on commit ace2bf0

Please sign in to comment.