-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1696 from pashist/gulp_update
Gulp update
- Loading branch information
Showing
7 changed files
with
193 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
var webpack = require('webpack'); | ||
var webpackMiddleware = require('webpack-dev-middleware'); | ||
var webpackHotMiddleware = require('webpack-hot-middleware'); | ||
var webpackConfig = require('../../webpack.dev.config'); | ||
var compiler = webpack(webpackConfig); | ||
|
||
module.exports = function (app) { | ||
app.use(webpackMiddleware(compiler, { | ||
publicPath: webpackConfig.output.publicPath, | ||
watchOptions: { | ||
aggregateTimeout: 300 | ||
}, | ||
stats: { | ||
colors: true | ||
} | ||
})); | ||
app.use(webpackHotMiddleware(compiler)) | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict' | ||
|
||
var webpack = require('webpack') | ||
var config = require('./webpack.config') | ||
var merge = require('lodash').merge | ||
|
||
module.exports = merge(config, { | ||
entry: ['./app.js', 'webpack-hot-middleware/client?reload=true'], | ||
output: { | ||
publicPath: '/bundle/' | ||
}, | ||
plugins: [ | ||
new webpack.optimize.OccurenceOrderPlugin(), | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.NoErrorsPlugin() | ||
] | ||
}); |
Oops, something went wrong.