Comments (4)
https://www.farmfe.org/docs/config/compilation-options/#outputpublicpath 看一下这个呢
from farm.
这样可以支持吗?
yarn farm build --base ./
--base <path> Public base path (default: /) (string)
from farm.
这样可以支持吗?
yarn farm build --base ./--base <path> Public base path (default: /) (string)
这个应该有的 传递的就是 publicPath, 如果不好用 可以提一个 issues 也欢迎 pr 👏
from farm.
我看文档命令行 base 跟配置上 output publicPath 都有提到的. 但是本地安装执行没成功, 没有尝试其他版本,
"@farmfe/cli": "^1.0.2",
"@farmfe/core": "^1.2.0",
import { defineConfig } from "@farmfe/core";
export default defineConfig({
// Options related to the compilation
compilation: {
output: {
path: "./dist",
publicPath: "./",
},
// ...
},
// Additional plugins
plugins: [],
});
from farm.
Related Issues (20)
- Does not support Termux (Android arm64) HOT 1
- [Feature Request]: Support inline critical css
- [Bug Report]: Cannot find package 'src' HOT 4
- [Bug Report]`import.meta.glob`执行出错 HOT 1
- [Bug Report]: resolver pointer error `@emotion/is-prop-vaiid`
- [Bug Report]: Cannot recognize `*.d.ts` file without `type` in `import` statement HOT 1
- [Bug Report]: ReferenceError: __dirname is not defined in ES module scope HOT 2
- [Bug Report]: require() of ES Module error HOT 1
- [Bug Report]: default minify work wrong with es6 export
- [Bug Report]: Bcrypt (package_json_path does not exist) HOT 3
- [Bug Report]: Nestjs Swagger don't render the page HOT 1
- [Bug Report]: script data-farm-entry-script="true" is added to HTML breaking CSP HOT 1
- [Bug Report]: farm watch doesn't copy /public contents to /dist HOT 1
- [Bug Report]: 在搭配 antd5 的 ConfigProvider 使用时, 开发时没问题, 打包后 报找不到 useStyle 问题
- [Feature Request]: `compilation.resolve.dedupe` config option HOT 8
- [Bug Report]: Error on creating a project with PascalCase naming HOT 5
- [Bug Report]: 使用官方electron模板错误 HOT 1
- [Bug Report]: build tiny-vue error
- [Bug Report]: 多页面打包配置isolate=true时,页面无法正常显示 HOT 1
- [Bug Report]: "Cannot redefine property: init..." on versions after @farmfe/core 1.3.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farm.