How to use webpack-userscript - 1 common examples

To help you get started, we’ve selected a few webpack-userscript 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 SimonAlling / userscripter / src / build / internal / webpack.ts View on Github external
],
                            },
                        },
                    ],
                },
            ],
        },
        resolve: {
            plugins: [
                new TsconfigPathsPlugin(),
            ],
            extensions: concat(Object.values(EXTENSIONS)).map(e => "." + e),
        },
        plugins: [
            new UserscripterWebpackPlugin(x),
            new WebpackUserscriptPlugin({
                metajs: true,
                headers: finalMetadata,
            }),
        ],
        optimization: {
            minimize: mode === Mode.production,
            minimizer: [
                new TerserPlugin({
                    parallel: true,
                }),
            ],
        },
    };
    // tslint:enable:object-literal-sort-keys
}

webpack-userscript

A Webpack plugin for userscript projects.

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular webpack-userscript functions