/js-widget-test

A cookie consent to be embedded in Best.Energy website

Primary LanguageJavaScript

Cookie consent widget


This is a cookie consent used for collecting maintenance records from Best.Energy partners in order to build predictive maintenance functionality for energy management solutions. Read this post for more details.

Dependencies


Install NPM

sudo apt update
sudo apt install npm

To build and serve the app to browser, we'll need WebPack packages

npm install webpack webpack-dev-server copy-webpack-plugin --save-dev

Build and Serve


./node_modules/.bin/webpack --config webpack.config.js
./node_modules/.bin/webpack-dev-server --open

Build release


./node_modules/.bin/webpack --config webpack.config.js --env.prod

Screenshots


cookie-consent.png details.png

References