-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
44 lines (37 loc) · 1.2 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*global module:false*/
module.exports = function(grunt) {
//handles plugins
require('jit-grunt')(grunt);
var webpack = require('webpack');
grunt.initConfig({
webpack: {
options: require('./webpack.config.js'),
development: {
debug: true,
},
production: {
debug: false,
production: true,
devtool: 'none',
output: {
pathinfo: false,
filename: 'ractive-multiselect.min.js',
},
plugins: [
new webpack.DefinePlugin({
DEBUG: false,
PRODUCTION: true
}),
new webpack.optimize.UglifyJsPlugin({
output: {
comments: false,
}
}),
new webpack.optimize.AggressiveMergingPlugin(),
new webpack.optimize.OccurenceOrderPlugin(true),
]
},
},
});
grunt.registerTask('default', ['webpack:development', 'webpack:production']);
};