File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import tailwindcssNesting from 'tailwindcss/nesting/index.js';
17
17
import postcssNesting from 'postcss-nesting' ;
18
18
19
19
const { EsbuildPlugin} = EsBuildLoader ;
20
- const { SourceMapDevToolPlugin, DefinePlugin} = webpack ;
20
+ const { SourceMapDevToolPlugin, DefinePlugin, EnvironmentPlugin } = webpack ;
21
21
const formatLicenseText = ( licenseText ) => wrapAnsi ( licenseText || '' , 80 ) . trim ( ) ;
22
22
23
23
const glob = ( pattern ) => fastGlob . sync ( pattern , {
@@ -213,6 +213,10 @@ export default {
213
213
__VUE_PROD_DEVTOOLS__ : false , // do not enable devtools support in production
214
214
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ : false , // https://github.com/vuejs/vue-cli/pull/7443
215
215
} ) ,
216
+ // all environment variables used in bundled js via process.env must be declared here
217
+ new EnvironmentPlugin ( {
218
+ TEST : 'false' ,
219
+ } ) ,
216
220
new VueLoaderPlugin ( ) ,
217
221
new MiniCssExtractPlugin ( {
218
222
filename : 'css/[name].css' ,
You can’t perform that action at this time.
0 commit comments