Skip to content
#

webpack-plugin

Here are 620 public repositories matching this topic...

natew
natew commented Sep 26, 2019

Haven't seen this reporter anywhere, tried out alpha 27 and with workerize-loader I get this:

TypeError: this.cache.get is not a function
    at /Users/nw/projects/motion/orbit/node_modules/webpack/lib/Compilation.js:2186:18
    at arrayEach (/Users/nw/projects/motion/orbit/node_modules/neo-async/async.js:2405:9)
    at Object.each (/Users/nw/projects/motion/orbit/node_modules/neo-async
gpoitch
gpoitch commented Oct 1, 2018

I know this is specific to web workers, however I think this could be adapted to work for service workers. I was looking to create a separate plugin but the code would be mostly the same.

Looks like it scans the AST for a keyword (Worker) and generates an entry for the referenced file.

// web worker
new Worker('./foo.js', { type: 'module' })

// service worker
navigator.servi
jimblue
jimblue commented Jun 30, 2019

Hi,

When comparing real assets size to the output of your plugin I see a huge difference.

I guess it's because size-plugin show gzipped sizes...
This can be confusing or non relevant depending of the use case and it could be nice to add a column to the output. (to display both compressed and real assets size)

Or maybe just an option to choose what too show?!

Tks !!

JustFly1984
JustFly1984 commented Jan 14, 2018

The issue I'm experiencing is pretty annoying.
I'm trying to optimize my first byte, by turning off compression, and gziping everything by webpack with CompressionPlugin. The issue is that it doesn't compress service-worker.js produced by sw-precache-webpack-plugin.

I understand the reason why: service-worker.js should cache all chunks produced by webpack after CompressionPlugin compress

Improve this page

Add a description, image, and links to the webpack-plugin topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the webpack-plugin topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.