Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. zarcode
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    zarcode

    @zarcode

    0
    Reputation
    2
    Posts
    244
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    zarcode Follow

    Posts made by zarcode

    • RE: ousenui.js is loaded whole even for a single component

      @emccorson Thank you very much for response. I am using Webpack. I have seen that part in docs it, but I am not clear how to import Switch component (for example) for react that way. What would code look like?

      import Switch from 'onsenui/esm/elements/ons-switch'; ???

      One more question is there a way not to import all components css? Because I think this:

      import 'onsenui/css/onsenui-core.css';
      import 'onsenui/css/onsen-css-components.css';

      is importing css for all components.

      posted in Onsen UI
      zarcode
    • ousenui.js is loaded whole even for a single component

      I just installed lib with intention to use it with React. After importing one component (Switch) I noticed bundle size increased by about 300kb and I see some big file onsenui.js got loaded.
      Is this how this lib works, it loads whole onsenui.js even if I want to use single component?

      posted in Onsen UI
      zarcode