Development and Production

When a new project is created, 3 commands are available that are necessary for you workflow: dev, build and eject.

Development

To start your development server just run npm run dev in the root of the project and look at the console to see on which port the application is runnin. By defailt the development server runs on port 8080 but if it finds it busy it just goes to the next available one.

Change any webpack configuration for development following the instructions at the configuration page.

Build for production

To create a production build you need to run npm run build in the root of the project.

Change any webpack configuration for production following the instructions at the configuration page.

Skip image optimization

To skip image optimization and have a faster deploy, it's possible to pass the skip-image-optimization flag running the build

$ npm run build -- --skip-image-optimization

or

$ blue-scripts build --skip-image-optimization

if you are using the blue-scripts command line

Eject project

Even if the webpack logic is fully customizable via blue.config.js file, it is still possible to eject the configuration logic from the blue-scripts package and bring that in the root of you project running npm run eject

Eject is a one way operation: is not possible to restore the previous state of the project.

results matching ""

    No results matching ""