I have installed @progress/kendo- with NPM and I have used to bundle the files I need to use a GRID and a COMBOBOX but so far I can't to minify the files that I get from . Both files are too long, I think. This is my config files to get GRID and COMBOBOX bundle and its and images:
------------------------------------------------------------------------------------------------
** appJS.js
$ = require('jquery');
require("@progress/kendo-/js/kendo.grid.js");
require("@progress/kendo-/js/kendo.combobox.js");
------------------------------------------------------------------------------------------------
** appCSS.js
require("@progress/kendo-//web/kendo.common.min.css");
require("@progress/kendo-//web/kendo.default.min.css");
require("@progress/kendo-//web/kendo.default.mobile.min.css");
------------------------------------------------------------------------------------------------
** webpack.config.js
var path = require('path');
var UglifyJsPlugin = require("uglifyjs-webpack-plugin");
module.exports = {
entry: {
main: './Scripts/appJS',
css: './Scripts/appCSS'
},
output: {
publicPath: "/js/",
path: path.join(__dirname, '/wwwroot/js/'),
filename: '[name].kendo.builds.js'
},
optimization: {
minimizer: [
new UglifyJsPlugin({
cache: true,
parallel: true
})
]
},
module: {
rules: [
{
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader' }
]
},
{
test: /\.(svg|gif|png|eot|woff|ttf)$/,
use: [
{ loader: 'url-loader' }
]
}
]
}
};
------------------------------------------------------------------------------------------------
With this configuration I get two files, main.kendo.builds.js and css.kendo.builds.js. The main are 998 KB and the css are 8954 KB.
What should I do to get them in minified format ????