mirror of
https://github.com/strapi/strapi.git
synced 2025-10-28 08:32:08 +00:00
Merge pull request #21204 from strapi/fix/vite-template
fix: template vite config example
This commit is contained in:
commit
25a51f164c
@ -1,6 +1,6 @@
|
|||||||
const { mergeConfig } = require('vite');
|
import { mergeConfig, type UserConfig } from 'vite';
|
||||||
|
|
||||||
module.exports = (config) => {
|
export default (config: UserConfig) => {
|
||||||
// Important: always return the modified config
|
// Important: always return the modified config
|
||||||
return mergeConfig(config, {
|
return mergeConfig(config, {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const { mergeConfig } = require('vite');
|
import { mergeConfig, type UserConfig } from 'vite';
|
||||||
|
|
||||||
module.exports = (config) => {
|
export default (config: UserConfig) => {
|
||||||
// Important: always return the modified config
|
// Important: always return the modified config
|
||||||
return mergeConfig(config, {
|
return mergeConfig(config, {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const { mergeConfig } = require('vite');
|
import { mergeConfig, type UserConfig } from 'vite';
|
||||||
|
|
||||||
module.exports = (config) => {
|
export default (config: UserConfig) => {
|
||||||
// Important: always return the modified config
|
// Important: always return the modified config
|
||||||
return mergeConfig(config, {
|
return mergeConfig(config, {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user