Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

App Engine minification sample

This sample provides an example of how to minify static CSS and JS files while deploying to App Engine.

The gcp-build NPM script is used to trigger the minification process. This step happens automatically when deploying to App Engine, but must be performed manually when developing locally.

Setup

Install dependencies:

npm install

Running locally

  1. Perform the build step locally:

    npm run gcp-build

  2. Run the completed program

    npm start

Deploying to App Engine

Deploy your app:

npm run deploy

By default, this application deploys to App Engine Standard. (Recommended) Deploy to App Engine Flexible by modifying app.yaml.