Skip to content

Commit 3f91256

Browse files
committed
Don't really need Terser plugin
Terser already bundled into Webpack >=4
1 parent 616b3e3 commit 3f91256

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
**Currently under development.**
44

5-
[![Build Status](https://travis-ci.org/philwareham/textpattern-bootstrap.svg)](https://travis-ci.org/philwareham/textpattern-bootstrap)
6-
5+
[![Build Status](https://travis-ci.com/philwareham/textpattern-bootstrap.svg)](https://travis-ci.com/philwareham/textpattern-bootstrap)
76
[Demo](https://bootstrap.philwareham.co.uk/).
87

98
Textpattern templates for use with [Bootstrap](https://getbootstrap.com/) v5.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"postcss-loader": "3.0.0",
2626
"sass": "1.32.5",
2727
"sass-loader": "10.1.1",
28-
"terser-webpack-plugin": "5.1.1",
2928
"webpack": "5.18.0",
3029
"webpack-cli": "4.4.0"
3130
},

webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const fs = require('fs');
44
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
55
const CopyWebpackPlugin = require('copy-webpack-plugin');
66
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
7-
const TerserPlugin = require('terser-webpack-plugin');
87
const webpack = require('webpack');
98

109
module.exports = {
10+
mode: 'production',
1111
entry: [
1212
'./js/app.js',
1313
'./scss/app.scss',
@@ -20,8 +20,7 @@ module.exports = {
2020
hints: false
2121
},
2222
optimization: {
23-
minimize: true,
24-
minimizer: [new TerserPlugin()]
23+
minimize: true
2524
},
2625
plugins: [
2726
new CleanWebpackPlugin(),

0 commit comments

Comments
 (0)