Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true
}).listen(3000, 'localhost', function (err, result) {
historyApiFallback: true,
stats: {
colors: true
}
}).listen(3000, 'localhost', function (err) {
if (err) {
console.log(err);
}
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "An experiment in fully hot-reloadable Flux",
"main": "lib/index.js",
"scripts": {
"start": "cd examples && node server.js",
"build": "babel src --out-dir lib",
"clean": "rimraf lib",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems to assume rimraf. Needs to be added to devDependencies?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added 059f4dd

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, yes... sorry about that!

"lint": "eslint src",
"build": "./scripts/build",
"prepublish": "npm run build"
"prepublish": "npm run clean && npm run build",
"start": "cd examples && node server.js"
},
"repository": {
"type": "git",
Expand Down