silverstripe-mix

1.0.0 • Public • Published

*** In development ***

Introduction

Silverstripe Mix is a wrapper around Laravel Mix to simplify SS module and theme development.

Installation

  1. Run npm install silvertripe-mix.
  2. 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"
}
  1. Create a webpack.mix.js NOT webpack.config.js file, with the following:
const mix = require('silverstripe-mix')
  1. 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

Package Sidebar

Install

npm i silverstripe-mix

Weekly Downloads

1

Version

1.0.0

License

BSD-3-Clause

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • gorriecoe