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
Webpack 排除内联模块_Webpack_Webpack 2 - Fatal编程技术网

Webpack 排除内联模块

Webpack 排除内联模块,webpack,webpack-2,Webpack,Webpack 2,我正在使用style ext html webpack plugin和script ext html webpack plugin将splash.css和splash.js文件内联到index.html中 通过运行到所述文件中的资产尝试缓存这些文件,但失败的原因是: 加载资源失败:服务器响应状态为404(未找到) 加载资源失败:服务器响应状态为404(未找到) 我很惊讶,因为内联文件在内联后应该被遗忘,不是吗 如何只内联这些文件而不将它们发送到输出中

我正在使用
style ext html webpack plugin
script ext html webpack plugin
splash.css
splash.js
文件内联到
index.html

通过运行到所述文件中的资产尝试缓存这些文件,但失败的原因是:

加载资源失败:服务器响应状态为404(未找到)

加载资源失败:服务器响应状态为404(未找到)

我很惊讶,因为内联文件在内联后应该被遗忘,不是吗

如何只内联这些文件而不将它们发送到输出中