mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 07:39:16 +00:00
fix: template vite config example
This commit is contained in:
parent
f2f7405929
commit
313d2477b8
@ -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