r/webpack • • Oct 02 '19

Dev Server

0 Upvotes

I use to use webpack-devserver which was not the sharpest tool in the box. Well it was never near the browser-sync.
What do you use these days for dev server?


r/webpack • • Mar 10 '22

Webpack in 100 Seconds

Thumbnail
youtube.com
2 Upvotes

r/webpack • • Sep 29 '18

What looks like a dependency graph raw file please ?

0 Upvotes

r/webpack • • Sep 29 '18

what is Webpack tapable please ?

0 Upvotes

I have understand is the core concept of Webpack but there is very few documentation about it, any hint would be great.


r/webpack • • Dec 28 '17

Why is Webpack create 2 files

0 Upvotes

Hi there, new to webpack. I have a single entry point and output file named [name].bundle.js. When I compile I get two files main.bundle.js and 0.bundle.js. Can someone explain this to me


r/webpack • • Feb 05 '19

alternative to copy-webpack-plugin

0 Upvotes

I'm using a library to build my webpacks and npm fails because the library is symlinked.

basically what happens is that package-lock doesn't go deep enough to figure out dependencies and then at depth=n it says that it cannot find the module. So the solution is to use dependencies which have a small tree, and i cannot find an alternative to copy-webpack-plugin which has a big dependency tree


r/webpack • • Nov 12 '21

Is it possible with Module Federation to import components from another framework?

0 Upvotes

So I do not wanna know if I can drop a complete react app into a Vue app, this is possible as far as I know. I wanna know If I can pull for instance a react component with its own state management into a Vue component and feed the data from there?

I know code sharing has become so much easier with module federation, hence I was hoping there might be a possibility to do this.


r/webpack • • Mar 24 '21

Fixing react on ie11

Thumbnail
levelup.gitconnected.com
2 Upvotes

r/webpack • • Oct 05 '17

Stickers!

0 Upvotes

Hi I come from a React dev shop and we love Webpack. Is there anywhere to acquire some stickers to show our proud support?

Does anyone have any advice on how we could acquire some?

Please PM if you have an idea, thanks!


r/webpack • • Aug 03 '17

A good beginner's guide to webpack 3

Thumbnail
liquidlight.co.uk
1 Upvotes

r/webpack • • Aug 02 '17

This is how angular-cli/webpack delivers your CSS styles to the client

Thumbnail
blog.angularindepth.com
1 Upvotes

r/webpack • • Jan 16 '23

Webpack pushing multiple projects to github

0 Upvotes

Hi, I am new to webpack and I just pushed another webpack project to github however, I see that 3 other projects were also pushed at the same time, I am confused


r/webpack • • Apr 26 '21

Bundling JavaScript in a single file create trouble?

1 Upvotes

in short : if you bundle all your JavaScript in a single file:

1- scripts from other pages will try to hook events in the current page. this may succeed ( an element in the current page has same id of an element in another page just by chance) which is bad.

2- too many error messages in the console due to other page's scripts trying to hook into the current page.

am I missing somethings?


r/webpack • • Jul 18 '22

How do I add footer and header to several HTML pages?

1 Upvotes

How do I add footer and header to several HTML pages?


r/webpack • • Sep 20 '17

See your webpack build progress in the Mac Touchbar • x-post from r/javascript

Thumbnail
reddit.com
1 Upvotes

r/webpack • • Aug 11 '19

Webpack vs ES6 modules

2 Upvotes

I have recently started learning Webpack. What I have understood is that it bundles various assets like JavaScript, CSS, etc., into bundles.

But regarding JavaScript, can't we achieve the same functionality natively with ES6 modules? For example, ideally we can have only one script of type module in our landing page .html file and that script module will import the require dependecies in the ES6 way.

I think ES6 modules are supported in almost all modern browsers. Isn't Webpack redundant in this scenario?


r/webpack • • Mar 01 '19

Great Course on Webpack by Sean Larkin

0 Upvotes

r/webpack • • Dec 15 '18

useState and useEffect with Hooks, GraphQL stitching 101, why Typescript & more

Thumbnail
getrevue.co
3 Upvotes

r/webpack • • Oct 21 '18

PayPal's GraphQL success, SOLID principles in React, code splitting & more

Thumbnail
getrevue.co
3 Upvotes

r/webpack • • Apr 30 '21

Why there is no good GUI for webpack?

7 Upvotes

I mean an advanced one. I mean so far I spent like weeks on end as a beginner studying webpack. I think there should be a better way.


r/webpack • • Mar 02 '19

Functional programming and React, progressive React, the front-end monolith & more

Thumbnail
getrevue.co
0 Upvotes

r/webpack • • Nov 15 '16

Webpack 2 CSS HMR not working

0 Upvotes

Hello!

I am struggling to convigure webpack 2 with hot module replacement. I am loading css styles using sass-loader->css-loader->style-loader and I am importing .sass file from index file directly.

Style is loaded OK, for example if I specify red background color on body element, it will be red. But when I launch webpack-dev-server and change scss file, it wont update styles until I reload page.

Console gets that something is changed, outputting:

[WDS] App updated. Recompiling...

[WDS] App hot update...

But style is not changed without reloading.

I am 100% sure that I managed to make this in my older project that was using webpack 1 and it updated styles in browser on the fly without reloading.

Here is my webpack config: http://pastebin.com/7FvRGqBA

Webpack version: webpack 2.1.0-beta.26

Webpack-dev-server version: webpack-dev-server 2.1.0-beta.10

I am launching dev server with commandline: webpack-dev-server --inline --hot

I am stuck and I dont know how to pass this problem.


r/webpack • • Mar 10 '21

Webpack loaders issue

0 Upvotes

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | import {render} from "react-dom"; | > render(<App/>, document.getElementById("root")); |

I am making sure I am using the right loaders and mentioned the jsx? in my test clause for the webpack modules. But things seem to remain same. Any help please ?


r/webpack • • Sep 27 '17

Trying to resolve a ~ url with webpack

0 Upvotes

I'm trying to get react-carroussel working and as they mention in the documentation. You need to import the css files by using:

@import "~slick-carousel/slick/slick.css"; @import "~slick-carousel/slick/slick-theme.css";

Digging around in the issues revealed that my webpack needs to be resolved to handle the ~ statement but I can't figure it out being new to webpack and all. Can anyone give me a hand with this?


r/webpack • • May 19 '20

source-maps generated wrong when using Webpack plugin replace-bundle-webpack-plugin

0 Upvotes

I am using Webpack plugin replace-bundle-webpack-plugin to replace strings in the generated bundle. Once use it, the source-maps will be generated incorrectly. How to replace string but not destroy source-maps?