mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-11 20:19:38 +02:00
admin js modules
This commit is contained in:
parent
073b488e3c
commit
6187c7bbcb
13 changed files with 61 additions and 1882 deletions
|
@ -3,6 +3,7 @@
|
|||
const gulp = require('gulp');
|
||||
const webpack = require('webpack-stream');
|
||||
const uswds = require('@uswds/compile');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
const ASSETS_DIR = './registrar/assets/';
|
||||
const JS_BUNDLE_DEST = ASSETS_DIR + 'js';
|
||||
|
@ -38,6 +39,14 @@ function createBundleTask(source, output) {
|
|||
.pipe(
|
||||
webpack({
|
||||
mode: 'production',
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
extractComments: false, // Prevents generating .LICENSE.txt
|
||||
}),
|
||||
],
|
||||
},
|
||||
output: { filename: output },
|
||||
module: {
|
||||
rules: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue