mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
UI dependency graph cleanup
This commit is contained in:
20
Gruntfile.js
20
Gruntfile.js
@@ -155,6 +155,25 @@ module.exports = function (grunt) {
|
||||
}
|
||||
},
|
||||
|
||||
requirejs: {
|
||||
compile:{
|
||||
options: {
|
||||
mainConfigFile: "_output/UI/app.js",
|
||||
fileExclusionRegExp: /^.*\.(?!js$)[^.]+$/,
|
||||
preserveLicenseComments: true,
|
||||
dir: "rjs/",
|
||||
optimize: 'none',
|
||||
removeCombined: true,
|
||||
inlineText: false,
|
||||
modules: [{
|
||||
name: 'app',
|
||||
exclude: ['JsLibraries/jquery']
|
||||
}],
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
options: {
|
||||
nospawn: false,
|
||||
@@ -213,6 +232,7 @@ module.exports = function (grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-notify');
|
||||
grunt.loadNpmTasks('grunt-curl');
|
||||
grunt.loadNpmTasks('grunt-contrib-requirejs');
|
||||
|
||||
grunt.registerTask('package', ['clean:output', 'copy', 'less', 'handlebars']);
|
||||
grunt.registerTask('default', ['package', 'watch']);
|
||||
|
Reference in New Issue
Block a user