Skip to content

Commit

Permalink
Add browser build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Tilley committed May 18, 2014
1 parent 7015951 commit 9732314
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/fluxbox.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/fluxbox.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"main": "index.js",
"scripts": {
"test": "mocha",
"build": "webpack -p",
"preview-site": "wintersmith preview -C site",
"build-site": "wintersmith build -C site"
},
Expand Down
21 changes: 21 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var webpack = require("webpack");

module.exports = {
cache: true,
entry: "./index.js",
sourceMapFilename: "fluxbox.js.min.map",
minimize: true,
output: {
path: __dirname + "/build",
filename: "fluxbox.min.js",
library: "Fluxbox",
libraryTarget: "umd"
},
devtool: "source-map",
module: {
loaders: [
{ test: /\.less$/, loader: "style!css!less" },
{ test: /\.jsx$/, loader: "jsx-loader" }
]
}
};

0 comments on commit 9732314

Please sign in to comment.