Top "Webpack" questions

Webpack is a static module bundler for modern JavaScript applications.

Support for the experimental syntax 'classProperties' isn't currently enabled

While I was setting up React within Django project I came across this error ModuleBuildError in Module build failed (from ./…

reactjs webpack babeljs
How to bundle vendor scripts separately and require them as needed with Webpack?

I'm trying to do something that I believe should be possible, but I really can't understand how to do it …

javascript webpack external-dependencies
How to include css files in Vue 2

I'm new to vue js and trying to learn this. I installed a fresh new version of vue webpack in …

webpack vue.js vuejs2 webpack-dev-server
How to decrease prod bundle size?

I have a simple app, initialized by angular-cli. It display some pages relative to 3 routes. I have 3 components. On one …

angular webpack angular-cli
Webpack not excluding node_modules

I'm using webpack for a Node framework that I'm building (though I should probably use gulp, admittedly). When I include …

javascript webpack
ES6 modules implementation, how to load a json file

I'm implementing an example from https://github.com/moroshko/react-autosuggest Important code is like this: import React, { Component } from 'react'; …

javascript json reactjs webpack
npx command not found

I am working with webpack and I need to execute ./node_modules/webpack/bin/webpack.js using npx. npx webpack …

node.js npm webpack npx
'import' and 'export' may only appear at the top level

I'm using webpack with vuejs. Webpack does its thing, but when I look at the outputted app.js file, it …

webpack vue.js babeljs
webpack: Module not found: Error: Can't resolve (with relative path)

I have this structure of an app (node_modules dir excluded from this list): ├── actions.js ├── bundle.js ├── components │   ├── App.…

javascript npm webpack relative-path
What does "publicPath" in Webpack do?

Webpack docs state that output.publicPath is: The output.path from the view of the JavaScript. Could you please elaborate …

javascript webpack