How to use zip-webpack-plugin - 2 common examples

To help you get started, we’ve selected a few zip-webpack-plugin 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 WorldBrain / Memex / build / plugins.js View on Github external
// CI build doesn't need to use linting plugins
    if (isCI) {
        return [...plugins, initTsPlugin(false)]
    }

    if (notifsEnabled) {
        plugins.push(
            new BuildNotifPlugin({
                title: 'Memex Build',
            }),
        )
    }

    if (shouldPackage) {
        plugins.push(
            new ZipPlugin({
                path: packagePath,
                filename: extPackageName,
                exclude: [/\.map/],
            }),
            new PostCompilePlugin(() =>
                exec('git archive -o dist/source-code.zip master'),
            ),
        )
    }

    return [
        ...plugins,
        initTsPlugin(true),
        new StylelintPlugin({
            files: 'src/**/*.css',
            failOnError: mode === 'production',
github honestbleeps / Reddit-Enhancement-Suite / webpack.config.babel.js View on Github external
],
			}, {
				test: /\.woff$/,
				use: [
					{ loader: 'file-loader', options: { esModule: false, name: '[name].[ext]' } },
				],
			}],
		},
		optimization: {
			minimize: false,
			concatenateModules: true,
		},
		plugins: [
			new InertEntryPlugin(),
			new LodashModuleReplacementPlugin(),
			(env.zip && !conf.noZip && new ZipPlugin({
				path: path.join('..', 'zip'),
				filename: conf.output,
			})),
		].filter(x => x),
	}));

zip-webpack-plugin

Webpack plugin to zip up emitted files.

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis

Popular zip-webpack-plugin functions