Skip to content

Commit

Permalink
feat: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
eryue0220 committed Mar 25, 2024
1 parent ab98571 commit 5431923
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions examples/farm-example/farm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
],
});

0 comments on commit 5431923

Please sign in to comment.