Minify JS output

parent 6c7627df
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<meta property="og:description" content="" /> <meta property="og:description" content="" />
<!-- Styles and scripts --> <!-- 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' %}"> <link rel="stylesheet" href="{% static 'app.bundle.css' %}">
</head> </head>
<body> <body>
......
...@@ -23,9 +23,10 @@ module.exports = { ...@@ -23,9 +23,10 @@ module.exports = {
}, },
output: { output: {
path: path.resolve(__dirname, 'static/dist'), path: path.resolve(__dirname, 'static/dist'),
filename: "./admin.js" filename: "./admin.min.js"
}, },
plugins: [ plugins: [
new ExtractTextPlugin('[name].bundle.css'), 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