Step 5: Compile and Run the Application
We'll cover the following...
As we installed webpack
locally, we have to configure a script to execute it. In your package.json
file, the following key was generated by default:
Press + to interact
"scripts": {"test": "echo \"Error: no test specified\" && exit 1"},
Replace the test
script with a webpack
script:
Press + to interact
"scripts": {"webpack": "webpack"},
Enter npm run
...