mirror of
https://github.com/rowtype-yoga/ry-blocks.git
synced 2024-09-11 21:38:06 +03:00
22 lines
500 B
JavaScript
22 lines
500 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
|
|
plugins: [new CompressionPlugin()],
|
|
|
|
|
|
// The JavaScript file to be injected into the HTML file
|
|
entry: path.resolve(__dirname, "index.prod.js"),
|
|
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "bundle.js",
|
|
},
|
|
});
|