-
I cannot create a reproduction on StackBlitz because of unsupported platform so here is the repo: https://github.com/jdkcoder/farm-vue3 I have tried these ways but none of them worked, even I already installed
Errors I got when writing directly into style tag Errors I got when seperated into test.stlyl body
background #000 package.json {
"name": "vue-example",
"version": "1.0.0",
"scripts": {
"dev": "farm start",
"build": "farm build",
"preview": "farm preview",
"clean": "farm clean"
},
"dependencies": {
"vue": "latest",
"vue-router": "latest"
},
"devDependencies": {
"@farmfe/cli": "latest",
"@farmfe/core": "latest",
"@vitejs/plugin-vue": "latest",
"core-js": "latest",
"stylus-loader": "latest",
"stylus": "latest"
}
} farm.config.ts import { defineConfig } from '@farmfe/core';
import vue from '@vitejs/plugin-vue';
import path from 'node:path'
export default defineConfig({
vitePlugins: [
vue(),
],
compilation: {
resolve: {
alias: {
'@': path.join(process.cwd(), 'src'),
}
},
sourcemap: false
},
}); index.ts import { createApp } from 'vue';
import router from './router'
import App from './App.vue';
import './styles.css'
const app = createApp(App)
app.use(router)
app.mount('#app') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A stylus farm plugin is needed to use stylus in Farm, we may implement the plugin later. Just use api of stylus to compile the stylus module to css module in transform hook |
Beta Was this translation helpful? Give feedback.
A stylus farm plugin is needed to use stylus in Farm, we may implement the plugin later. Just use api of stylus to compile the stylus module to css module in transform hook