Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

framework7io/framework7-loader

Repository files navigation

Webpack loader for Framework7 single file components

What is Framework7 Component Loader?

framework7-loader is a loader forwebpack that allows you to authorFramework7 Router components in a format calledSingle-File Components:

<!-- my-page.f7.html --><template><divclass="page">${msg}</div></template><script>exportdefault()=>{constmsg='Hello world';return$render;};</script>

Installation

npm i framework7-loader

Configuration

module.exports={  ...module:{rules:[      ...{test:/\.f7.html$/,use:['babel-loader','framework7-loader',],},      ...]}...}

JSX

Framework7 v6 single file components also support JSX:

<!-- my-page.f7.html --><script>exportdefault()=>{constmsg='Hello world';return()=><divclass="page">{msg}</div>;};</script>
// my-page.f7.jsexportdefault()=>{constmsg='Hello world';return()=><divclass="page">{msg}</div>;};

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors2

    •  
    •  

    [8]ページ先頭

    ©2009-2025 Movatter.jp