mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Remove mini from default build, restyle
This commit is contained in:
parent
a9b658515a
commit
f31ff6d728
|
@ -17,12 +17,12 @@ const templatePlugin = (context) => through.obj(function(file, encoding, cb) {
|
||||||
file.path = file.path.replace(new RegExp(`${tjson}$`), '.json');
|
file.path = file.path.replace(new RegExp(`${tjson}$`), '.json');
|
||||||
|
|
||||||
if (file.isStream()) {
|
if (file.isStream()) {
|
||||||
return cb(new PluginError(PluginName, 'Streams not supported!'));
|
return cb(new PluginError(PluginName, 'Streams are not supported!'));
|
||||||
} else if (file.isBuffer()) {
|
} else if (file.isBuffer()) {
|
||||||
|
|
||||||
const {keys, values} = Object.keys(context).reduce( (acc, key) => {
|
const {keys, values} = Object.keys(context).reduce( (acc, key) => {
|
||||||
|
|
||||||
const value = context[key];
|
const value = context[key];
|
||||||
acc.keys.push(key);
|
acc.keys.push(key);
|
||||||
acc.values.push(value);
|
acc.values.push(value);
|
||||||
return acc;
|
return acc;
|
||||||
|
@ -103,4 +103,5 @@ gulp.task('_cp-full', ['_cp-common'], function(cb) {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('build', ['_cp-mini', '_cp-full']);
|
gulp.task('build:prod', ['_cp-mini', '_cp-full']);
|
||||||
|
gulp.task('build', ['_cp-full']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user