Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
34436b7f
Commit
34436b7f
authored
Feb 13, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add terser minifier for webpack
parent
98963366
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
546 additions
and
109 deletions
+546
-109
Makefile
Makefile
+0
-1
package-lock.json
package-lock.json
+540
-103
package.json
package.json
+1
-2
webpack.common.js
webpack.common.js
+5
-0
webpack.dev.js
webpack.dev.js
+0
-3
No files found.
Makefile
View file @
34436b7f
...
...
@@ -19,7 +19,6 @@ SASS ?= ./node_modules/.bin/node-sass
SED
?=
sed
SPHINXBUILD
?=
./bin/sphinx-build
SPHINXOPTS
=
UGLIFYJS
?=
node_modules/.bin/uglifyjs
XGETTEXT
=
xgettext
...
...
package-lock.json
View file @
34436b7f
This diff is collapsed.
Click to expand it.
package.json
View file @
34436b7f
...
...
@@ -101,8 +101,7 @@
"
sinon
"
:
"
^8.1.1
"
,
"
sizzle
"
:
"
^2.3.4
"
,
"
style-loader
"
:
"
^0.23.1
"
,
"
uglify-es
"
:
"
^3.3.9
"
,
"
uglify-js
"
:
"
^3.7.4
"
,
"
terser-webpack-plugin
"
:
"
^2.3.4
"
,
"
urijs
"
:
"
^1.19.1
"
,
"
webpack
"
:
"
^4.35.3
"
,
"
webpack-cli
"
:
"
^3.3.5
"
,
...
...
webpack.common.js
View file @
34436b7f
/* global __dirname, module */
const
path
=
require
(
'
path
'
);
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
);
bootstrap_ignore_modules
=
[
'
carousel
'
,
'
scrollspy
'
];
...
...
@@ -16,6 +17,10 @@ module.exports = {
externals
:
[{
"
window
"
:
"
window
"
}],
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
},
watchOptions
:
{
ignored
:
[
/dist/
,
/spec/
,
/.*
\~
/
]
},
...
...
webpack.dev.js
View file @
34436b7f
...
...
@@ -11,9 +11,6 @@ module.exports = merge(prod, {
publicPath
:
ASSET_PATH
,
filename
:
'
converse.js
'
,
},
optimization
:
{
minimize
:
false
,
},
devtool
:
'
source-map
'
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
'
../dist/converse.css
'
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment