silverstripe-mix
v1.0.0
Published
Silverstripe Mix is a wrapper around Laravel Mix.
Downloads
3
Readme
*** In development ***
Introduction
Silverstripe Mix is a wrapper around Laravel Mix to simplify SS module and theme development.
Installation
- Run
npm install silvertripe-mix
. - Add the following NPM scripts to your
package.json
file.
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
}
- Create a
webpack.mix.js
NOTwebpack.config.js
file, with the following:
const mix = require('silverstripe-mix')
- Refer to documentation for additional required configuration.
Documentation
You may review the initial documentation via Laravel Mix with it's default configuation defined using silverstripe/webpack-config
License
Laravel Mix is open-sourced software licensed under the BSD license