let linkus = require('linkus/linkus');
let isProd = false;
let builds = [];
builds.push({
entry: './entry1.js',
output: './output1.js'
});
builds.push({
entry: './entry2.js',
output: './output2.js'
});
linkus.create({
basedir: __dirname,
oldBuildCount: 5,
builds : builds,
modularImport: false,
// fileMapping: {
// enabled: isProd,
// files: [
// {from:'file1.js', to: 'file2.js'}
// ]
// },
compile: {
compilationLevel: 'ADVANCED_OPTIMIZATIONS', //'SIMPLE_OPTIMIZATIONS',
enabled: isProd,
isDebugMode: false,
},
});
const SassLinker = require('linkus/SassLinker');
const inputdir = __dirname+'/../app/public/scss/';
const outputdir = __dirname+'/../assets/css/';
let builds = [];
builds.push({
entry: inputdir+'/default.scss',
output: outputdir+'/default.css',
});
let sassLinker = new SassLinker({
basedir: __dirname, // path that contain node_modules directory
builds,
nbOfOldVersions:2
});
sassLinker.execute();