Skip to content

Latest commit

 

History

History
executable file
·
44 lines (32 loc) · 774 Bytes

README.md

File metadata and controls

executable file
·
44 lines (32 loc) · 774 Bytes

zephir loader for webpack

This package will compile your zephir code.

Ex:

Installation

npm install zephir-loader

Usage

var fileContent = require("zephir-loader!./file.php");
// => run file.php with php and return it as some content (html for example)

It can also be used inside the webpack configuration file (webpack.js):

module.exports = {
  ...
  module: {
    loaders: [
      ...
      {
        test: /\.zep$/,
        loaders: [
          'zephir-loader'
        ]
      },
      ...
    ]
  },
  ...
}

Documentation: Using loaders

License

MIT (http://www.opensource.org/licenses/mit-license.php)