Gruntfile.js
22 lines
| 816 B
| application/javascript
|
JavascriptLexer
r745 | var gruntConfig = require('./grunt_config.json'); | |||
r3171 | var webpackConfig = require('./webpack.config'); | |||
gruntConfig["webpack"] = { | ||||
options: { | ||||
stats: !process.env.NODE_ENV || process.env.NODE_ENV === 'development' | ||||
}, | ||||
prod: webpackConfig, | ||||
dev: Object.assign({ watch: false }, webpackConfig) | ||||
}; | ||||
r1 | ||||
r745 | module.exports = function(grunt) { | |||
grunt.initConfig(gruntConfig); | ||||
r1 | ||||
grunt.loadNpmTasks('grunt-contrib-less'); | ||||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||||
r4017 | grunt.loadNpmTasks('grunt-contrib-uglify'); | |||
r1 | grunt.loadNpmTasks('grunt-contrib-watch'); | |||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||||
r689 | grunt.loadNpmTasks('grunt-contrib-copy'); | |||
r3171 | grunt.loadNpmTasks('grunt-webpack'); | |||
r4017 | grunt.registerTask('default', ['less:production', 'less:components', 'copy', 'webpack', 'concat:dist', 'uglify:dist']); | |||
r1 | }; | |||