An addon to expose gamification features
Addon can be installed with addon manager : in eXo Platform folder :
./addon install exo-gamification
The goals of development and production builds differ greatly. In development, we want strong source mapping and a localhost server with live reloading or hot module replacement. In production, our goals shift to a focus on minified bundles, lighter weight source maps, and optimized assets to improve load time.
We will write separate webpack configurations for each environment.
We will have 3 configurtions :
With the "common" configuration in place, we won’t have to duplicate code within the environment-specific configurations.
In order to merge these configurations together, we’ll use a utility called webpack-merge
$ npm install --save-dev webpack-merge
contains the core API.
automatically determines the Babel plugins and polyfills you need based on your targeted browser or runtime environments.
Install babel required modules
npm install --save-dev babel-core babel-preset-env babel-preset-stage-3
Tip: "npm i -D"
is a shorter alias for:
What is a Babel preset?
In Babel, a preset is a set of plugins used to support particular language features.
To configure babel you have to create the following file .babelrc
We will be using the following Webpack libraries:
encapsulates all code related to command line interface handling.
serves a webpack app and updates the browser on changes.
npm install --save-dev webpack webpack-cli webpack-dev-server