mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
remove splitVendorChunkPlugin
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { defineConfig, splitVendorChunkPlugin } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import viteTsconfigPaths from 'vite-tsconfig-paths';
|
import viteTsconfigPaths from 'vite-tsconfig-paths';
|
||||||
import preact from '@preact/preset-vite';
|
import preact from '@preact/preset-vite';
|
||||||
import viteImagemin from 'vite-plugin-imagemin';
|
import viteImagemin from 'vite-plugin-imagemin';
|
||||||
@@ -30,6 +30,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mode === 'hosted') {
|
if (mode === 'hosted') {
|
||||||
|
console.log('Preparing for hosted build');
|
||||||
return {
|
return {
|
||||||
plugins: [preact(), viteTsconfigPaths()],
|
plugins: [preact(), viteTsconfigPaths()],
|
||||||
build: {
|
build: {
|
||||||
@@ -38,11 +39,12 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Preparing for production, optimized build');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: [
|
plugins: [
|
||||||
preact(),
|
preact(),
|
||||||
viteTsconfigPaths(),
|
viteTsconfigPaths(),
|
||||||
splitVendorChunkPlugin(),
|
|
||||||
{
|
{
|
||||||
...viteImagemin({
|
...viteImagemin({
|
||||||
verbose: false,
|
verbose: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user