How to use the @symfony/webpack-encore.enableBuildNotifications function in @symfony/webpack-encore

To help you get started, we’ve selected a few @symfony/webpack-encore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Leafpub / leafpub / webpack.config.js View on Github external
});

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