How to use the @symfony/webpack-encore.addStyleEntry 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 chamilo / chamilo-lms / webpack.config.js View on Github external
themes.forEach(function (theme) {
    Encore.addStyleEntry('css/themes/' + theme + '/default', './assets/css/themes/' + theme + '/default.css');

    // Copy images from themes into public/build
    Encore.addPlugin(new CopyPlugin({
        patterns: [{
            from: 'assets/css/themes/' + theme + '/images',
            to: 'css/themes/' + theme + '/images'
        }]
    },
    ));
});
github phpdish / phpdish / webpack.config.js View on Github external
'github-markdown-css',
    '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();
github phpdish / phpdish / webpack.config.js View on Github external
'twemoji',

    'github-markdown-css',
    '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();