From 5431923ecfc3eab00d614eb26a8f4cb996882275 Mon Sep 17 00:00:00 2001 From: eryue0220 Date: Mon, 25 Mar 2024 18:29:25 +0800 Subject: [PATCH] feat: upgrade --- examples/farm-example/farm.config.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/examples/farm-example/farm.config.js b/examples/farm-example/farm.config.js index 99be61d..33ec1c5 100644 --- a/examples/farm-example/farm.config.js +++ b/examples/farm-example/farm.config.js @@ -2,15 +2,18 @@ import { defineConfig } from '@farmfe/core' import stylexFarmPlugin from 'unplugin-stylex/farm' export default defineConfig({ + compilation: { + input: { + index: './index.html' + }, + output: { + path: 'dist', + publicPath: '/', + targetEnv: 'browser' + }, + }, plugins: [ '@farmfe/plugin-react', - stylexFarmPlugin({ - dev: true, - stylex: { - useCSSLayers: true, - genConditionalClasses: true, - treeshakeCompensation: true, - }, - }), + stylexFarmPlugin({ dev: true }), ], }); \ No newline at end of file