Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
c86c970f
Verified
Commit
c86c970f
authored
Dec 06, 2017
by
Thibaut Broggi
Browse files
Minify JS output
parent
6c7627df
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
c86c970f
...
...
@@ -16,7 +16,7 @@
<meta
property=
"og:description"
content=
""
/>
<!-- Styles and scripts -->
<script
src=
"{% static 'admin.js' %}"
charset=
"utf-8"
></script>
<script
src=
"{% static 'admin.
min.
js' %}"
charset=
"utf-8"
></script>
<link
rel=
"stylesheet"
href=
"{% static 'app.bundle.css' %}"
>
</head>
<body>
...
...
webpack.config.js
View file @
c86c970f
...
...
@@ -23,9 +23,10 @@ module.exports = {
},
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
static/dist
'
),
filename
:
"
./admin.js
"
filename
:
"
./admin.
min.
js
"
},
plugins
:
[
new
ExtractTextPlugin
(
'
[name].bundle.css
'
),
new
webpack
.
optimize
.
UglifyJsPlugin
({
minimize
:
true
})
],
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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