Ĭustom parameters can be passed to webpack by adding two dashes between the npm run build command and your parameters, e.g. You can also set it to 'none' to disable any default behavior. Now run the following command and see if your script alias works: npm run build This convention is the standard in most npm-based projects because it allows all contributors to use the same set of common scripts (each with flags like -config if necessary). Note that within scripts we can reference locally installed npm packages by name the same way we did with npx. Now the npm run build command can be used in place of the npx command we used earlier. "test": "echo \"Error: no test specified\"
0 Comments
Leave a Reply. |