Minify JS output

parent 6c7627df
......@@ -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>
......
......@@ -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})
],
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment