Rename plugin
This commit is contained in:
parent
414fd16298
commit
52377f4969
@ -109,8 +109,8 @@ const svgUseCacheBust = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const resolveImportedSvg = {
|
const resolveSvgImports = {
|
||||||
name: 'resolveImportedSvg',
|
name: 'resolveSvgImports',
|
||||||
setup(build) {
|
setup(build) {
|
||||||
build.onStart(() => {
|
build.onStart(() => {
|
||||||
console.log("BUILD STARTED");
|
console.log("BUILD STARTED");
|
||||||
@ -174,7 +174,7 @@ const ctx = await esbuild.context({
|
|||||||
entryPoints: ['src/index.js', 'src/soldier_record_block.js', 'src/map.js'],
|
entryPoints: ['src/index.js', 'src/soldier_record_block.js', 'src/map.js'],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
outdir: 'build',
|
outdir: 'build',
|
||||||
plugins: [resolveImportedSvg, externalSvgToInternal],
|
plugins: [resolveSvgImports, externalSvgToInternal],
|
||||||
loader: {
|
loader: {
|
||||||
'.svg': 'file'
|
'.svg': 'file'
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user