File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class RunCommandsPlugin {
6262
6363 isFirstRun = false ;
6464
65- if ( this . env . updateUserScripts ) {
65+ if ( this . env [ " updateUserScripts" ] ) {
6666 exec ( "npx tsx ./script/addUserScriptComment.ts" , ( err , stdout ) => {
6767 if ( err ) {
6868 // eslint-disable-next-line no-console
@@ -80,7 +80,7 @@ class RunCommandsPlugin {
8080 }
8181}
8282
83- const isProduction = process . env . NODE_ENV === "production" ;
83+ const isProduction = process . env [ " NODE_ENV" ] === "production" ;
8484/* eslint-disable sort-keys */
8585// eslint-disable-next-line max-lines-per-function
8686const config = defineConfig ( ( env ) => ( {
@@ -89,7 +89,7 @@ const config = defineConfig((env) => ({
8989 entry : {
9090 "./chrome/js/index.js" : "./src/ts/index.ts" ,
9191 "./firefox/js/index.js" : "./src/ts/index.ts" ,
92- ...( env . updateUserScripts ? { "../index.user.js" : "./src/ts/index.ts" } : { } )
92+ ...( env [ " updateUserScripts" ] ? { "../index.user.js" : "./src/ts/index.ts" } : { } )
9393 } ,
9494 output : {
9595 filename : "[name]" ,
You can’t perform that action at this time.
0 commit comments