Hey, this is part of my project.json file:
"scripts": {
"prepublish": [
"node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js",
"node node_modules/webpack/bin/webpack.js"
],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
I want to call prepublish scripts every time I publish an application, even if it is a development environment, and I run it through a visual studio or dotnet launch. Prepublishdoesn't seem to work in these cases
source
share