Skip to content

Commit

Permalink
Switch to Webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
graue committed Jul 4, 2015
1 parent 926f88a commit b74009f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tested.

#### Client side

Pots, fyi uses [Browserify](http://browserify.org/) to bundle together
Pots, fyi uses Webpack to bundle together
its client-side dependencies.
This requires [npm](http://npmjs.org/).

Expand Down
13 changes: 6 additions & 7 deletions script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.1",
"private": true,
"scripts": {
"watch": "watchify -o ../static/bundle.js main.js"
"build": "webpack --progress --colors",
"watch": "webpack --progress --colors --watch"
},
"dependencies": {
"es6-promise": "^2.0.1",
Expand All @@ -12,11 +13,9 @@
"underscore": "1.4.4"
},
"devDependencies": {
"babelify": "~6.1.2",
"browserify": "~10.2.4",
"watchify": "~3.2.2"
},
"browserify": {
"transform": ["babelify"]
"babel-core": "^5.6.15",
"babel-loader": "^5.3.0",
"node-libs-browser": "^0.5.2",
"webpack": "^1.10.1"
}
}
12 changes: 12 additions & 0 deletions script/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
cache: true,
entry: './main',
output: {
filename: '../static/bundle.js'
},
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
]
}
};

0 comments on commit b74009f

Please sign in to comment.