@@ -9,6 +9,7 @@ import postcssImport from 'postcss-import'
99import { terser } from 'rollup-plugin-terser'
1010import del from 'rollup-plugin-delete'
1111import copy from 'rollup-plugin-copy'
12+ import replace from '@rollup/plugin-replace'
1213
1314const globals = {
1415 vue : 'Vue'
@@ -34,6 +35,10 @@ export default [
3435 css : false ,
3536 compileTemplate : true
3637 } ) ,
38+ replace ( {
39+ preventAssignment : true ,
40+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
41+ } ) ,
3742 postcss ( {
3843 output : 'css' ,
3944 extract : 'vue-flow-form.css' ,
@@ -70,6 +75,10 @@ export default [
7075 css : false ,
7176 compileTemplate : true
7277 } ) ,
78+ replace ( {
79+ preventAssignment : true ,
80+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
81+ } ) ,
7382 postcss ( {
7483 output : 'css' ,
7584 extract : 'vue-flow-form.css' ,
@@ -106,6 +115,10 @@ export default [
106115 css : false ,
107116 compileTemplate : true
108117 } ) ,
118+ replace ( {
119+ preventAssignment : true ,
120+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
121+ } ) ,
109122 postcss ( {
110123 output : 'css' ,
111124 extract : 'vue-flow-form.css' ,
@@ -142,6 +155,10 @@ export default [
142155 css : false ,
143156 compileTemplate : true
144157 } ) ,
158+ replace ( {
159+ preventAssignment : true ,
160+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
161+ } ) ,
145162 postcss ( {
146163 output : 'css' ,
147164 extract : 'vue-flow-form.min.css' ,
0 commit comments