native-ext-loader
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -12,4 +12,5 @@ var loaderUtils = require("loader-utils"); | ||
const context = this.options ? this.options.context : this.rootContext; | ||
const fileName = loaderUtils.interpolateName(this, config.name, { | ||
context: this.options.context, | ||
context: context, | ||
content: content | ||
@@ -16,0 +17,0 @@ }); |
{ | ||
"name": "native-ext-loader", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Loader for Node native extensions", | ||
"main": "index.js", | ||
"repository": "https://github.com/smt116/node-native-loader", | ||
"scripts": { | ||
}, | ||
"scripts": {}, | ||
"keywords": [ | ||
@@ -10,0 +9,0 @@ "node", |
# Node Native Loader | ||
Module for loading native files in Node and Electron applications. The project is inspired by the (node-addon-loader)[https://github.com/ushu/node-addon-loader]. It works in the similar way but allows to build path in the runtime. | ||
Module for loading native files in Node and Electron applications. The project is inspired by the [node-addon-loader](https://github.com/ushu/node-addon-loader). It works in the similar way but **allows to build path in the runtime**. | ||
@@ -34,3 +34,3 @@ ## Install | ||
test: /\.node$/, | ||
loader: 'node-native-loader', | ||
loader: 'native-ext-loader', | ||
options: { | ||
@@ -46,3 +46,3 @@ name: '[hex].[ext]', | ||
This option allows to change the file name in the output directory. You can use all placeholders defined in the (loader-utils)[https://github.com/webpack/loader-utils/tree/v1.1.0#interpolatename] package. | ||
This option allows to change the file name in the output directory. You can use all placeholders defined in the [loader-utils](https://github.com/webpack/loader-utils/tree/v1.1.0#interpolatename) package. | ||
@@ -49,0 +49,0 @@ ### `rewritePath` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4906
31