mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
Hello Webpack4
This commit is contained in:
1 parent
0aa6183804
commit
06f1b5bc62
12 files changed
+350
-548
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable */
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import yaml from 'js-yaml';
|
||||
|
||||
import PluginError from 'plugin-error';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable */
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import PluginError from 'plugin-error';
|
||||
import through from 'through2';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/* 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();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable */
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
const _ = require('lodash');
|
||||
const crypto = require('crypto');
|
||||
|
||||
|
||||
Reference in new issue
Block a user