Skip to content

Boilerplate for PHP-based websites

License

Notifications You must be signed in to change notification settings

chevalvert/boilerplate-php-webpack

Repository files navigation

boilerplate-php-webpack

Boilerplate for PHP-based websites


Installation

By using as a Github template

Use this template.

By cloning and unboiling manually

$ git clone https://github.com/chevalvert/boilerplate-php-webpack my-website
$ cd my-website
$ npm install
💡 Before starting your project, it is recommanded to unboil it using brocessing/unboil :

unboil allows you to clean a boilerplate project (files like package.json, readme, git...) to quickly start your own project from it.

Usage

$ npm run start
$ npm run build:preprod
$ npm run build

$ npm run test
$ npm run lint

Modules aliases

package.json
{  
  
  "aliases": {
    "a-directory": "a-directory",
    "a-file": "a-directory/a-file"
  }
}
index.js
import 'a-directory/a-file'
import foo from 'a-file'

License

MIT.