提交 f49eb848 编写于 作者: C codecalm

rollup replace fix

上级 9f107202
......@@ -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/**'
}),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册