git.iko.soy/rowtype-yoga/ry-blocks
on es-modules help sign in
rowtype-yoga/ry-blocks/webpack.prod.js
21 lines 500 B history raw
1"use strict";
3const path = require("path");
4const { merge } = require('webpack-merge');
5const common = require('./webpack.common.js');
6const CompressionPlugin = require('compression-webpack-plugin');
8module.exports = merge(common, {
9 mode: 'production',
11 plugins: [new CompressionPlugin()],
14 // The JavaScript file to be injected into the HTML file
15 entry: path.resolve(__dirname, "index.prod.js"),
17 output: {
18 path: path.resolve(__dirname, "dist"),
19 filename: "bundle.js",
20 },
21});