This PR enable our project to build react js application.
We use npm to "compile" (technically it's transpiling) react js file in app.js into a runnable script in resource/bundle.js that our Spring project will read and serve them to user browser.
The NPM build process (build refer to the whole transpiling, minifying, etc) could be run automatically via maven command, thanks to frontend-maven-plugin
Before you can run this, there are few "installation" step required:
Open cmd window and cd to detroit folder.
Install node via mvn:frontend plugin
mvn frontend:install-node-and-npm -DnodeVersion=v6.10.2
This PR enable our project to build react js application.
We use npm to "compile" (technically it's transpiling) react js file in app.js into a runnable script in
resource/bundle.js
that our Spring project will read and serve them to user browser.The NPM build process (build refer to the whole transpiling, minifying, etc) could be run automatically via maven command, thanks to frontend-maven-plugin
Before you can run this, there are few "installation" step required:
mvn frontend:install-node-and-npm -DnodeVersion=v6.10.2
mvn frontend:npm
command line
, isi denganfrontend:webpack