How to use the @symfony/webpack-encore.configureUglifyJsPlugin 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 phpdish / phpdish / webpack.config.js View on Github external
'bootstrap-select/dist/css/bootstrap-select.min.css',
    'codemirror/lib/codemirror.css',
    'codemirror/theme/yeti.css',
    'simplemde/src/css/simplemde.css',
    'social-share-button.js/dist/social-share.min.css',
    'highlight.js/styles/tomorrow.css',
    'selectize/dist/css/selectize.bootstrap3.css',
    'nprogress/nprogress.css',
    'loaders.css'
]);

//add style entries
Encore.addStyleEntry('css/style', config.scssPath + '/_all.scss');
Encore.addStyleEntry('css/resume', config.scssPath + '/resume.scss');

Encore.configureUglifyJsPlugin(function(options){
    options.comments = true;
});

//final webpack config
module.exports = Encore.getWebpackConfig();