🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

nmf-webpack-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nmf-webpack-loader - npm Package Compare versions

Comparing version

to
2.0.0

10

package.json
{
"name": "nmf-webpack-loader",
"version": "1.0.0",
"version": "2.0.0",
"description": "A Webpack loader for Native Client manifests",

@@ -10,4 +10,4 @@ "main": "src/nmf-loader.js",

"repository": {
"type" : "git",
"url" : "https://github.com/tidal-engineering/nmf-webpack-loader.git"
"type": "git",
"url": "https://github.com/tidal-engineering/nmf-webpack-loader.git"
},

@@ -17,6 +17,6 @@ "author": "tidal-engineering",

"devDependencies": {
"file-loader": "^0.9.0",
"webpack": "^1.13.2"
"file-loader": "^0.11.1",
"webpack": "^2.4.1"
},
"dependencies": {}
}

@@ -5,3 +5,3 @@ # nmf-loader - A Webpack loader for Native Client manifests

the assets into the output directory, replaces the url with the outputted path,
recompiles the .nmf JSON structure and
recompiles the .nmf JSON structure and returns a data url (e.g. `data:application/x-pnacl,{"program":...`).

@@ -36,3 +36,3 @@ ## Usage

Example .nmf file:
Example .nmf file, `my-nativeclient.nmf`:

@@ -39,0 +39,0 @@ ```json

@@ -0,5 +1,7 @@

const path = require('path');
module.exports = {
entry: './test/index.js',
output: {
path: 'test/tmp',
path: path.resolve(__dirname, '..', 'test', 'tmp'),
filename: 'dist.js',

@@ -9,13 +11,17 @@ publicPath: '/my-public-path/'

module: {
loaders: [{
rules: [{
test: /\.nmf$/,
loader: 'nmf',
query: {
name: '[name].[hash:6].[ext]'
}
use: {
loader: 'nmf-loader',
options: {
name: '[name].[hash:6].[ext]'
}
},
}, {
test: /\.((nexe)|(pexe)|(so))$/,
loader: 'file-loader',
query: {
name: '[name].[hash:6].[ext]'
use: {
loader: 'file-loader',
options: {
name: '[name].[hash:6].[ext]'
}
}

@@ -28,5 +34,5 @@ }],

resolveLoader: {
modulesDirectories: ['../src', '../node_modules']
modules: ['./src', './node_modules']
},
target: "web"
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet