/laravel-mix-boilerplate

A Laravel Mix boilerplate for building basic web applications with HTML, JavaScript and SASS 🚀

Primary LanguageHTML

Laravel Mix Boilerplate

A Laravel Mix boilerplate for building basic web applications with HTML, JavaScript and SASS.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Installing

  1. Clone the repository from GitHub:
git clone https://github.com/mgoigfer/laravel-mix-boilerplate.git <project-name> && cd <project-name> && rm -rf .git
  1. Create a .env config file, and fill it with your development environment config:
cp .env.example .env
  1. Install Node.js. The following nvm commands will install the Node.js version specified at .nvmrc:
nvm install && nvm use
  1. Install yarn dependencies:
yarn install

Running in development environment

Development mode

yarn dev

Development mode (with browsersync)

yarn watch

Production mode

yarn prod

Built With

  • Laravel Mix - An elegant wrapper around Webpack for the 80% use case

Authors