Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flying-assets-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flying-assets-webpack-plugin - npm Package Compare versions

Comparing version 0.1.0-rc4 to 0.1.0-rc5

2

package.json
{
"name": "flying-assets-webpack-plugin",
"version": "0.1.0-rc4",
"version": "0.1.0-rc5",
"description": "A Webpack plugin generates launching HTML for both development and production",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -132,3 +132,3 @@ Flying Assets Webpack Plugin

app.get('*', (req, res, error) => {
res.render('index'); // now you have locals `assets` in your template scope
res.render('index');
});

@@ -141,4 +141,5 @@ ```

app.locals.assets = require('../dist/assets.json');
app.locals.publicPath = require('../webpack.prod').output.publicPath;
app.get('*', (req, res, error) => {
res.render('index'); // now you have locals `assets` in your template scope
res.render('index');
});

@@ -145,0 +146,0 @@ ```

@@ -9,2 +9,4 @@ export default function webpackAssetsMiddleware(compiler, options = {}) {

res.locals.assets = compiler.assets;
res.locals.publicPath = compiler.options.output.publicPath,
if (options.render) {

@@ -11,0 +13,0 @@ res.send(compiler.html);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc