Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
const prodMode = new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
});
const preCache = new SWPrecacheWebpackPlugin({
cacheId: 'leafpub-admin',
filename: 'service-worker.js',
staticFileGlobs: ['assets/**/*.{js,html,css}'],
minify: true,
stripPrefix: 'assets/'
});
Encore
//#####################################################################################################
// Settings
//####################################################################################################
.enableBuildNotifications(true, function(options) {
options.title = 'Leafpub build process';
options.alwaysNotify = true;
options.contentImage = path.join(__dirname, '/app/source/images/logo-color.png')
})
// directory where all compiled assets will be stored
.setOutputPath('app/assets')
// what's the public path to this directory (relative to your project's document root dir)
.setPublicPath('/assets')
// empty the outputPath dir before each build