mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
17 lines
318 B
JavaScript
17 lines
318 B
JavaScript
/* eslint-disable */
|
|
export default class DummyOutputPlugin {
|
|
constructor(file) {
|
|
this.file = file;
|
|
}
|
|
|
|
apply(compiler) {
|
|
compiler.plugin('emit', (compilation, callback) => {
|
|
compilation.assets[this.file] = {
|
|
source: () => '',
|
|
size: () => 0,
|
|
};
|
|
callback();
|
|
});
|
|
}
|
|
}
|