@pixolith/webpack-twig-assets-emitter-plugin

    5.0.0 • Public • Published

    Webpack Twig Assets Emitter Plugin

    How to use

    Install

    npm install @pixolith/webpack-twig-assets-emitter-plugin --save-dev

    Add the plugin

    const TwigAssetEmitterPlugin = require('@pixolith/webpack-twig-assets-emitter-plugin');

    Add this to the plugins section of your webpack.config.js

    new TwigAssetEmitterPlugin({
        includes: ['js', 'css'],
        ignoreFiles: [],
        template: {
            scripts: {
                namespace: '@Storefront/storefront',
                path: '',
                filename: '_px_base.html.twig',
            },
            styles: {
                namespace: '@Storefront/storefront',
                path: 'layout',
                filename: '_px_meta.html.twig',
            },
            hints: {
                namespace: '@Storefront/storefront',
                path: 'layout',
                filename: '_px_meta.html.twig',
            },
        },
    }),

    Keywords

    none

    Install

    npm i @pixolith/webpack-twig-assets-emitter-plugin

    DownloadsWeekly Downloads

    4

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    13 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar