GithubHelp home page GithubHelp logo

Comments (2)

jinghm318 avatar jinghm318 commented on June 2, 2024

基本信息

  • 依赖包名 及 版本: @arco-plugins/vite-vue
  • 框架版本: Vue
  • 浏览器版本: chrome103.0.5060.114

额外补充

开发环境下并非按需导入样式而是导入全部,只有构建环境下才会按需导入。 开始以为是个人配置问题,折腾无果后翻阅源码发现似乎是故意为之,但是文档并未说明这一点。 请问为什么不在开发环境下也启用按需引入呢?

styleOptimization = command === 'build';

开发环境按需导入会引起页面频繁刷新,体验并不太好,所以只在构建的时候按需引入

from arco-plugins.

jinghm318 avatar jinghm318 commented on June 2, 2024

@Ryongyon 文档已更新

from arco-plugins.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.