bitandblack-matomo-optout
Version:
Custom OptOut in Matomo (Piwik) with AJAX. Doesn't need an iframe.
18 lines (15 loc) • 484 B
JavaScript
const Encore = require("@symfony/webpack-encore");
const isProduction = Encore.isProduction();
Encore
.setOutputPath("example/build/")
.setPublicPath("/")
.addEntry("example", "./example/assets/example.js")
.cleanupOutputBeforeBuild()
.enableBuildNotifications()
.enableSourceMaps(!isProduction)
.enableVersioning(false)
.enableSassLoader()
.disableSingleRuntimeChunk()
.enableTypeScriptLoader()
;
module.exports = Encore.getWebpackConfig();