Go to file
Ray Elliott 0b39daa89d update readme 2021-03-27 18:25:32 +00:00
assets/images initial commit 2021-03-26 12:33:37 +00:00
layouts initial commit 2021-03-26 12:33:37 +00:00
pages initial commit 2021-03-26 12:33:37 +00:00
partials initial commit 2021-03-26 12:33:37 +00:00
src enable hmr 2021-03-27 18:24:15 +00:00
.gitignore enable hmr 2021-03-27 18:24:15 +00:00
README.md update readme 2021-03-27 18:25:32 +00:00
package-lock.json enable hmr 2021-03-27 18:24:15 +00:00
package.json enable hmr 2021-03-27 18:24:15 +00:00
postcss.config.js add postcss plugins and config 2021-03-27 17:25:42 +00:00
theme.yaml add theme and version information 2021-03-27 17:36:25 +00:00
version.yaml add theme and version information 2021-03-27 17:36:25 +00:00
webpack.mix.js enable hmr 2021-03-27 18:24:15 +00:00

README.md

October CMS Webpack Theme Boilerplate

This is a starter theme for October CMS that includes:

  • Webpack (using Laravel Mix)
  • PostCSS
  • Hot module reloading

To use it:

  • Install October CMS
  • Clone the repo in your theme directory
  • Inside cloned directory run npm install (node_modules folder will be created)
  • Install more packages using npm install --save
  • Require your installed packages in src/js/app.js
  • Modify the js and css files
  • Run npm run dev (npm run watch to recompile when something changes, npm run hot to enable HMR)
  • Add new pages, partials, content files...

When you are ready for production:

  • Run npm run prod

To add ajax framework

npm install jquery

Add framework tag to layouts/default.htm:

<script src="{{ this.layout.scripts }}"></script>

{% framework extras %}

{% scripts %}