- Clone this repo using
git clone. - Move to the appropriate directory.
- Run
npm -ioryarnin order to install dependencies.
- Run
git push heroku master - Go to browser and visit:
localhost:8080.
This will start up a webpack dev server to allow for local development of your application.
The development enviroment has various commands in the package.json which we are able to run via the CLI, which are as follows:
start: Starts the development server on localhost:8080 by default.build: Builds the application into a bundle and prepare for deployment.
The build script will run several optimizations and preapre a single .html file which will link to the static files (.js and .css) as an application that will be ready to be served via a server.
- Run
yarn buildornpm run build2 Files will output in thebuilddirectory
- Define browser targets in
./browserslistcfile
- Define browsers in
.babelrcfile
@include breakpoint(sm) {
margin-top: 100px;
}
@include breakpoint(480px) {
display: none;
}
@include breakpoint($min: 640px, $max: 2000px) {
display: none;
}