2.0.3 • Published 5 years ago

ferrugemjs-loader v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ferrugemjs-loader

ferrugemjs-node is a simple webpack loader to converte template HTML engine to google incremental-DOM js.

NPM

Install

'npm install ferrugemjs-loader --save-dev'

Usage

//webpack.config.js 
module: {
    rules: [
        {
          test: /\.html$/
          ,loaders:[
		{ 
			loader: 'ferrugemjs-loader',
			options: {
				templateExtension:'.html', // default is '.html'
				env: 'production' // default is 'development'
			} 
		}
	   ]
        }
    ]
},
,resolve: {
    extensions: [".js",".html"]
    ,alias:{    		
    	"app":__dirname + '/src'
    	,"ferrugemjs":"ferrugemjs/dist/core"
    }    
}

to work with webpack there is 'ferrugemjs/platform' as a application bootstrapping.

import bootstrapper from "ferrugemjs/bootstrapper";

or

import platform from "ferrugemjs/platform";
import init_app from "./init-app";
 
platform
    .bootstrap(init_app)
    .at(
        document.getElementById("init_app_id")
    );

License

MIT License

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

0.36.0

6 years ago

0.35.0

6 years ago

0.34.0

6 years ago

0.33.0

6 years ago

0.32.0

6 years ago

0.31.4

6 years ago

0.31.3

6 years ago

0.31.2

6 years ago

0.31.0

6 years ago

0.30.2

6 years ago

0.30.1

6 years ago

0.30.0

6 years ago

0.29.1

6 years ago

0.29.0

6 years ago

0.28.0

6 years ago

0.27.1

6 years ago

0.27.0

6 years ago

0.26.2

6 years ago

0.26.1

6 years ago

0.26.0

6 years ago

0.25.0

6 years ago

0.24.0

6 years ago

0.23.0

6 years ago

0.22.0

6 years ago

0.21.0

7 years ago

0.17.3

7 years ago

0.17.2

7 years ago

0.17.1

7 years ago

0.17.0

7 years ago

0.16.4

7 years ago

0.16.3

7 years ago

0.16.2

7 years ago

0.16.1

7 years ago

0.16.0

7 years ago

0.15.2

7 years ago

0.15.1

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago