Framework7 single-file component loader for Webpack
> Webpack loader for Framework7 single file components
framework7-loader is a loader for webpack that allows you to author Framework7 Router components in a format called Single-File Components:
``html
${msg}
`
``
npm i framework7-loader
`js
module.exports = {
...
module: {
rules: [
...
{
test: /\.f7.html$/,
use: [
'babel-loader',
'framework7-loader',
],
},
...
]
}
...
}
`
Framework7 v6 single file components also support JSX:
`html`
`js
// my-page.f7.js
export default () => {
const msg = 'Hello world';
return () =>