grunt for webpack
Конфигурация grunt для webpack.
Gruntfile.js:
var webpackDevConfig = require('/stati/javascript/grunt_for_webpack/webpack.config.js');
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-webpack');
var pkgConfig = grunt.file.readJSON('/stati/javascript/grunt_for_webpack/package.json');
grunt.initConfig({
pkg: pkgConfig,
webpack: {
options: webpackDevConfig,
start: {
},
watch: {
watch: true,
keepalive: true
}
}
});
grunt.registerTask('watch', ['webpack:watch']);
grunt.registerTask('default', ['webpack:start']);
};