Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var common = require('./webpack.common');
- var webpack = require('webpack');
- var merge = require('merge');
- var webpackConfig = merge(true, common);
- webpackConfig.plugins.push(new webpack.IgnorePlugin(/vertx/));
- webpackConfig.devtool = 'source-map';
- webpackConfig.watch = true;
- webpackConfig.keepalive = true;
- webpackConfig.stats = {colors: true};
- module.exports = function (grunt) {
- grunt.initConfig({
- clean: ['build'],
- concurrent: {
- dev: ['nodemon:app', 'webpack:dev'],
- options: {
- logConcurrentOutput: true
- }
- },
- jshint: {
- all: [
- '*.js',
- '{actions,configs,components,services,stores}/**/*.js'
- ],
- options: {
- jshintrc: true
- }
- },
- nodemon: {
- app: {
- script: './server.js',
- options: {
- ignore: ['build/**', 'node_modules/'],
- ext: 'js,jsx'
- }
- }
- },
- webpack: {
- dev: webpackConfig
- }
- });
- // libs
- grunt.loadNpmTasks('grunt-contrib-clean');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-concurrent');
- grunt.loadNpmTasks('grunt-nodemon');
- grunt.loadNpmTasks('grunt-webpack');
- // tasks
- grunt.registerTask('default', ['clean', 'concurrent:dev']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement