Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msn0 committed Nov 13, 2016
1 parent 5c93b04 commit f342c54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "mdn-polyfills",
"version": "1.0.0",
"description": "MDN polyfills - Array.from, Array.find, Object.assign, ...",
"version": "2.0.0",
"description": "MDN polyfills",
"scripts": {
"transpile": "babel ./src --out-dir ./dist",
"prepublish": "npm run transpile && webpack",
"prepublish": "webpack",
"test": "ava"
},
"repository": {
Expand Down
19 changes: 8 additions & 11 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const webpack = require('webpack');
const path = require('path');

module.exports = {
entry: {
"Object.assign": "./src/Object.assign/index.js",
"Array.prototype.find": "./src/Array.prototype.find/index.js",
"Array.prototype.from": "./src/Array.prototype.from/index.js"
"Array.prototype.from": "./src/Array.prototype.from/index.js",
"Array.prototype.filter": "./src/Array.prototype.filter/index.js",
"Array.prototype.forEach": "./src/Array.prototype.forEach/index.js"
},
output: {
filename: "[name].js"
Expand All @@ -14,14 +15,10 @@ module.exports = {
new webpack.optimize.UglifyJsPlugin()
],
module: {

loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}
]

loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}]
}
};

0 comments on commit f342c54

Please sign in to comment.