UNPKG

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