Skip to content
Starter for Enonic XP app built with Webpack
JavaScript TypeScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Implement the Webpack starter #1 Apr 29, 2019
src/main Renamed client-side assets from js to es6 Jun 25, 2019
util
.gitignore Implement the Webpack starter #1 Apr 29, 2019
LICENSE.txt
README.adoc
build.gradle Transpile and bundle serverside code #4 Jun 24, 2019
gradle.properties
gradlew Fixed gradlew permissions, node version and dependencies May 27, 2019
gradlew.bat
package-lock.json Added @babel/helper-create-class-features-plugin, removed deprecated … Jul 17, 2019
package.json
postcss.config.js
settings.gradle Implement the Webpack starter #1 Apr 29, 2019
tsconfig.json
webpack.client.config.js Renamed client-side assets from js to es6 Jun 25, 2019
webpack.server.config.js Enabled build of server-side Typescript files. Added webapp.ts and te… Jun 24, 2019

README.adoc

Webpack Starter for Enonic XP

This starter kit will set up a basic template for your new Enonic app, with support for the Webpack.

Note
See the official documentation for a more detailed guide.

Compatibility

Version Min XP version

1.2.0

7.0.0

1.1.0

7.0.0

1.0.1

7.0.0

1.0.0

7.0.0

Introduction

Once initiated, you’ll have the bare minimum needed to create a new Enonic application with Webpack. You’ll have all the folders set up, and can get straight to creating what you’re creating.

The project will support:

  • Code minification;

  • Production and development environments;

  • SASS and Less support;

  • Transpilation of ECMAScript code with Babel (client- and server-side);

  • Transpilation of TypeScript code (client- and server-side).

Create a project

To setup a project locally, simply run the following command:

$ enonic project create

Complete the Wizard and make sure you choose Webpack starter from the list of starters

$ cd <project-folder>

To build and deploy the project:

$ enonic project deploy
Note
Don’t have the Enonic CLI? Visit the Getting started guide to install it.
You can’t perform that action at this time.