1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | var mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
7 | var env = process.env.NODE_ENV;
|
8 | var inProduction = env === 'production';
|
9 | var config = inProduction ? {
|
10 | plugins: [
|
11 | new mini_css_extract_plugin_1.default({
|
12 | filename: '[name].[contenthash].css',
|
13 | }),
|
14 | ],
|
15 | } : {};
|
16 | exports.default = config;
|