1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

rollup replace fix

This commit is contained in:
codecalm
2021-02-09 01:03:24 +01:00
parent 9f107202de
commit f49eb84828
2 changed files with 7 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ const gulp = require('gulp'),
rollupCleanup = require('rollup-plugin-cleanup'),
{nodeResolve} = require('@rollup/plugin-node-resolve'),
rollupCommonjs = require('@rollup/plugin-commonjs'),
rollupReplace = require('@rollup/plugin-replace'),
vinylSource = require('vinyl-source-stream'),
vinylBuffer = require('vinyl-buffer'),
critical = require('critical').stream,
@@ -201,6 +202,9 @@ gulp.task('js', () => {
format: 'umd',
},
plugins: [
rollupReplace({
'process.env.NODE_ENV': JSON.stringify(BUILD ? 'production' : 'development'),
}),
rollupBabel({
exclude: 'node_modules/**'
}),