dby-node-file-loader

1.0.0 • Public • Published

webpack loader 插件。用来处理 .node 文件的依赖和打包逻辑。

// webpack

rules: [
  {
    test: /\.node$/,
    use: [
      {
        loader: 'dby-node-fie-loader'
      }
    ]
  }
]

插件会把 require('xxx.node') 解析成 global.process.dlopen(path_to_xxx_node_file),同时把 xxx.node 复制到 outputPath/node/xxx.node 路径下。

Readme

Keywords

none

Package Sidebar

Install

npm i dby-node-file-loader

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.09 kB

Total Files

3

Last publish

Collaborators

  • duobeiyun