Adding librejs license. Not working with uglify / quantum.
This commit is contained in:
parent
49892690ff
commit
01049ed18a
1 changed files with 4 additions and 0 deletions
4
ui/fuse.js
vendored
4
ui/fuse.js
vendored
|
@ -5,11 +5,14 @@ const {
|
||||||
CSSPlugin,
|
CSSPlugin,
|
||||||
WebIndexPlugin,
|
WebIndexPlugin,
|
||||||
QuantumPlugin,
|
QuantumPlugin,
|
||||||
|
BannerPlugin,
|
||||||
} = require('fuse-box');
|
} = require('fuse-box');
|
||||||
const transformInferno = require('ts-transform-inferno').default;
|
const transformInferno = require('ts-transform-inferno').default;
|
||||||
const transformClasscat = require('ts-transform-classcat').default;
|
const transformClasscat = require('ts-transform-classcat').default;
|
||||||
let fuse, app;
|
let fuse, app;
|
||||||
let isProduction = false;
|
let isProduction = false;
|
||||||
|
let libreJsLicense =
|
||||||
|
'// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt GNU Affero General Public License, version 3';
|
||||||
|
|
||||||
Sparky.task('config', _ => {
|
Sparky.task('config', _ => {
|
||||||
fuse = new FuseBox({
|
fuse = new FuseBox({
|
||||||
|
@ -39,6 +42,7 @@ Sparky.task('config', _ => {
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
uglify: true,
|
uglify: true,
|
||||||
}),
|
}),
|
||||||
|
BannerPlugin(libreJsLicense),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
app = fuse.bundle('app').instructions('>index.tsx');
|
app = fuse.bundle('app').instructions('>index.tsx');
|
||||||
|
|
Loading…
Reference in a new issue