s-electrolux-apac.eluxmkt.com

Electrolux APAC CDN. The 's' is for static assets.

What is inside the box

Build

To push code to https://elux-apac-v2.niteco.se/gtm-scripts/

Please:

  1. Update the path format to desire location: build.path.output.pathFormat (webpack.config.json). Available params are: [region] [country] and [version]. Starting location should be: //ELUX2-VM/gmt-scripts/
  2. To build all entries, run the following command:
    npm run batch-dev

Note: To build for single country, please update relate setting from webpack.manual-build.js. Then run following command:

npm run dev

Note 2: If ommit the version on the config, the version

Installation

Load 2 scripts below in respective order. You can either inject in your html code or using GTM to load custom script.

With HTML

<script defer type="text/javascript" src="//s-electrolux-apac.eluxmkt.com/gtm/apac/vn/1.0.0/settings.gtm.js"></script>
<script defer type="text/javascript" src="//s-electrolux-apac.eluxmkt.com/gtm/apac/vn/1.0.0/settings.dev.js"></script>

With Javascript

[
'//s-electrolux-apac.eluxmkt.com/gtm/apac/vn/1.0.0/settings.gtm.js',
'//s-electrolux-apac.eluxmkt.com/gtm/apac/vn/1.0.0/settings.dev.js'
].forEach(function(src) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src;
script.defer = true;
document.head.appendChild(script);
});