1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Improve Ember build process

This commit is contained in:
Harvey Kandola 2019-01-07 14:43:56 +00:00
parent e6ddb1ec24
commit 9206e9aaa1
6 changed files with 770 additions and 716 deletions

View file

@ -1,15 +1,5 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
'use strict';
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var isDevelopment = EmberApp.env() === 'development';
@ -21,20 +11,20 @@ module.exports = function (defaults) {
fingerprintAssetMap: true,
prepend: '/',
extensions: ['js', 'css'],
exclude: ['tinymce/**', 'codemirror/**', 'flowchart/**']
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
},
minifyJS: {
enabled: !isDevelopment,
options: {
exclude: ['tinymce/**', 'codemirror/**', 'flowchart/**']
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
}
},
minifyCSS: {
enabled: !isDevelopment,
options: {
exclude: ['tinymce/**', 'codemirror/**', 'flowchart/**']
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
}
},
@ -79,3 +69,14 @@ module.exports = function (defaults) {
return app.toTree();
};
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com