You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the project is not gonna use some of the config options (like assets), you probably will try to disable it by making the field empty or removing it. This currently is not possible and it will trigger an error with the parser in resolve.js
For example, you just want to build the .sma files only, then when everything is ready, you build the entire project with the assets included.
A possible fix for this problem would be to provide a default value for these options (to avoid triggering an error when the field isn't isn't defined), and to check that when it's empty, don't do any copying.
// --------------- Case 1 -------------------"input": {
"scripts": "./src/scripts",
"include": "./src/include",
"assets": ""// Leaving this empty will use the "node_modules" folder instead.
},
"output": {
"scripts": "./dist/addons/amxmodx/scripting",
"plugins": "./dist/addons/amxmodx/plugins",
"include": "./dist/addons/amxmodx/scripting/include",
"assets": "./dist"
},
// ------------ Case 2 -------------------"input": {
"scripts": "./src/scripts",
"include": "./src/include",
// Removing the field will trigger a parser error// "assets": ""
},
"output": {
"scripts": "./dist/addons/amxmodx/scripting",
"plugins": "./dist/addons/amxmodx/plugins",
"include": "./dist/addons/amxmodx/scripting/include",
// Removing the field will trigger a parser error// "assets": ""
},
This can be workarounded to input to some empty directory like "assets": "./empty", but still it would be good to be able to disable this.
Some options I found useful to disable by the moment are:
assets in both input/output: Sometimes you want to disable temporarily the copying of the assets
output.scripts: Sometimes you don't need to distribute the scripting files
The text was updated successfully, but these errors were encountered:
When the project is not gonna use some of the config options (like
assets
), you probably will try to disable it by making the field empty or removing it. This currently is not possible and it will trigger an error with the parser in resolve.jsFor example, you just want to build the .sma files only, then when everything is ready, you build the entire project with the assets included.
A possible fix for this problem would be to provide a default value for these options (to avoid triggering an error when the field isn't isn't defined), and to check that when it's empty, don't do any copying.
This can be workarounded to input to some empty directory like
"assets": "./empty"
, but still it would be good to be able to disable this.Some options I found useful to disable by the moment are:
assets
in both input/output: Sometimes you want to disable temporarily the copying of the assetsoutput.scripts
: Sometimes you don't need to distribute the scripting filesThe text was updated successfully, but these errors were encountered: