Skip to content

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

Notifications You must be signed in to change notification settings

gorriecoe/silverstripe-mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*** 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published