[TASK] Seperate dev and default for requirejs
This commit is contained in:
parent
5921a5f355
commit
e9e393e105
4 changed files with 22 additions and 7 deletions
|
@ -109,15 +109,25 @@ module.exports = function (grunt) {
|
|||
}
|
||||
},
|
||||
requirejs: {
|
||||
compile: {
|
||||
default: {
|
||||
options: {
|
||||
baseUrl: "lib",
|
||||
name: "../bower_components/almond/almond",
|
||||
mainConfigFile: "app.js",
|
||||
include: "../app",
|
||||
wrap: true,
|
||||
optimize: "uglify",
|
||||
out: "build/app.js"
|
||||
out: "build/app.js",
|
||||
build: false
|
||||
}
|
||||
},
|
||||
dev: {
|
||||
options: {
|
||||
baseUrl: "lib",
|
||||
name: "../bower_components/almond/almond",
|
||||
mainConfigFile: "app.js",
|
||||
include: "../app",
|
||||
optimize: "none",
|
||||
out: "build/app.js",
|
||||
build: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = function (grunt) {
|
|||
livereload: true
|
||||
},
|
||||
files: ["*.css", "app.js", "lib/**/*.js", "*.html"],
|
||||
tasks: ["default"]
|
||||
tasks: ["dev"]
|
||||
},
|
||||
config: {
|
||||
options: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue