Ensure that the DEFINES
build target constants, in gulpfile.js
, cannot be changed
This commit is contained in:
parent
1ee63dc465
commit
8440958bcf
@ -90,7 +90,7 @@ var CSS_VARIABLES_CONFIG = {
|
|||||||
preserve: true,
|
preserve: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
var DEFINES = {
|
const DEFINES = Object.freeze({
|
||||||
PRODUCTION: true,
|
PRODUCTION: true,
|
||||||
SKIP_BABEL: true,
|
SKIP_BABEL: true,
|
||||||
TESTING: false,
|
TESTING: false,
|
||||||
@ -102,7 +102,7 @@ var DEFINES = {
|
|||||||
COMPONENTS: false,
|
COMPONENTS: false,
|
||||||
LIB: false,
|
LIB: false,
|
||||||
IMAGE_DECODERS: false,
|
IMAGE_DECODERS: false,
|
||||||
};
|
});
|
||||||
|
|
||||||
function transform(charEncoding, transformFunction) {
|
function transform(charEncoding, transformFunction) {
|
||||||
return through.obj(function (vinylFile, enc, done) {
|
return through.obj(function (vinylFile, enc, done) {
|
||||||
|
Loading…
Reference in New Issue
Block a user