Boilerplate for PHP-based websites
$ 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.
$ npm run start
$ npm run build:preprod
$ npm run build
$ npm run test
$ npm run lint
{
…
"aliases": {
"a-directory": "a-directory",
"a-file": "a-directory/a-file"
}
}
import 'a-directory/a-file'
import foo from 'a-file'