Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 网页包Dllplugin中的冗余模块_Javascript_Webpack - Fatal编程技术网

Javascript 网页包Dllplugin中的冗余模块

Javascript 网页包Dllplugin中的冗余模块,javascript,webpack,Javascript,Webpack,我在应用程序中使用Webpack3.0.0。我正在尝试使用Webpack中的DllPlugins将对库的引用拆分为单独的文件。最初我使用的是CommonChunkPlugin,它允许我将库拆分为jquery.js和kendo.js。kendo.js文件不包含jquery库。 在我使用DllPlugin更改了这个之后,似乎jquery.js和kendo.js都有jquery。 下面是我的配置 var webpack = require('webpack'); var path = require(

我在应用程序中使用Webpack3.0.0。我正在尝试使用Webpack中的DllPlugins将对库的引用拆分为单独的文件。最初我使用的是CommonChunkPlugin,它允许我将库拆分为jquery.js和kendo.js。kendo.js文件不包含jquery库。 在我使用DllPlugin更改了这个之后,似乎jquery.js和kendo.js都有jquery。 下面是我的配置

var webpack = require('webpack');
var path = require('path');

module.exports = {
    entry: {
        jquery: ["jquery"],
        kendo: [
            'kendo.autocomplete.min',
            'kendo.treelist.min',
            'kendo.slider.min',
            'kendo.tooltip.min',
            'kendo.dataviz.chart.min',
            'kendo.dataviz.themes.min',
            'kendo.grid.min',
            'kendo.data.min',
            'kendo.core.min'
        ]
    },

output: {
    filename: "[name].bundle.js",
    path: path.resolve(__dirname, '../assets'),
    library: "[name]_lib"
},

plugins: [
    new webpack.DllPlugin({
        path: path.resolve(__dirname, '../assets/[name]-manifest.json'),
        name: '[name]_lib'
    })
],

};
是否有人可以帮助更改配置,将jquery从kendo.js中排除