webpack-2 Questions
46
Solved
I've started using webpack2 (to be precise, v2.3.2) and after re-creating my config I keep running into an issue I can't seem to solve I get (sorry in advance for ugly dump):
ERROR in ./src/main.j...
Ornstead asked 27/3, 2017 at 3:40
10
It seems that webpack gets stuck on
92% chunk asset optimization for about 30+ seconds to show a simple js/css change. This is too long for anyone sane to sit and wait that much of their life to se...
Askew asked 9/3, 2018 at 0:30
9
Solved
I am new to webpack and worked out almost all build sections, but now the problem is that I want to pass the environment variables from a .env file to webpack config, so that I can pass that variab...
Mitra asked 14/9, 2017 at 17:20
5
webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
plugins: [
new webpack.HotModuleReplacementPlugin()
],
output:...
Hortensiahorter asked 19/6, 2017 at 18:40
2
Solved
I'm currently developing a web application and am in the process of refactoring my code so it's bundled by WebPack.
In my HTML I have a button that calls the sendMessage() function when clicked,
...
Quean asked 23/11, 2017 at 0:0
5
I installed webpack-bundle-analyzer and need to run it. How can I do it? I have several errors. One of the most common is
Could't analyze webpack bundle
Mashe asked 9/5, 2018 at 18:54
5
I using webpack, after build and run in chrome show this error,I don't know how to solve it.
My code is very simple:
{
"devDependencies": {
"babel-core": "^6.23.1",
"babel-loader": "^6.3...
27
Solved
I am trying to import components from react-materialize as -
import {Navbar, NavItem} from 'react-materialize';
But when the webpack is compiling my .tsx it throws an error for the above as -
ERRO...
2
I npm installed jQuery and am now seeing a bunch of Module not found: Error: Can't resolve... errors. Any idea of what the root issue could be and a resolution?
ERROR in ./node_modules/jquery/...
4
The error as follows:
> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ...
5
Can I custom the url that be automatically opened in browser? I found there is no api for that? Since that there is not a index under the project root, but the default url is localhost:8080. Or in ...
Benadryl asked 23/12, 2016 at 3:21
3
Solved
I'm trying to import fonts from a local resource in my react project which uses webpack and styled components. I have a fonts folder with the following code:
import { css } from 'styled-component...
Nazarene asked 6/3, 2019 at 20:29
5
Solved
I have a single page app that I code split on each route. When I deploy a new version of my app the users will usually get an error if a user still has the page open and visits a route they haven't...
Burack asked 17/6, 2017 at 5:28
4
Solved
I have installed node type definitions using the following command
npm install --save-dev @types/node
After that, when I try to import the node type definitions using the following statement
im...
Shopworn asked 7/6, 2017 at 15:27
7
Solved
Is it possible to define a global variable with webpack to result something like this:
var myvar = {};
All of the examples I saw were using external file require("imports?$=jquery!./file.js")
Congressman asked 6/6, 2016 at 11:44
3
Solved
I'm using ES6, babel and Webpack 2 to bundle an AWS Lambda. I am then running/testing it using AWS SAM local. I get the following error when I hit the api -
Handler 'handler' missing on module 'di...
Tractarianism asked 13/11, 2017 at 16:44
10
Solved
Just started out using React yesterday so setting up a demo app. Environment is:
Typescript
Webpack
React & React DOM
I'm trying to setup Bootstrap styles.
I followed this tutorial along b...
5
Solved
With Rollup I can output an ES module by simply setting the format option to 'es'. How can I do the same with webpack? If it's not possible now, does webpack have any plans to add it?
The only thi...
Residence asked 22/12, 2016 at 17:57
1
Coming from some classic server-side template languages (php, jsp), I have a general architectural question on React.js:
Can I limit certain components of a page to be rendered server-side only? ...
Wilsonwilt asked 7/4, 2018 at 7:9
2
Solved
I get that in the newest Webpack we can specify the module.rules option enforce: 'pre' to make a certain loader run as a "pre-loader" as specified in the docs.
But I couldn't find any proper expla...
2
Solved
In webpack 1.x I could use the eslint property in my webpack config to enable autofixing my linting errors using:
...
module.exports = {
devtool: 'source-map',
entry: './src/app.js',
eslint: {...
5
Solved
i just try vuejs with webpack template, then i realize every image in my page was encoded with data:image/png;base64 .. with some reason i think i don't want to use that feature
i don't set .htacc...
8
Solved
Especially during the transition from webpack v1 to v2, it would be important to programmatically determine what webpack version is installed, but I cannot seem to find the appropriate API.
Sommer asked 15/1, 2017 at 13:3
6
I have a docker app with the following containers
node - source code of the project. it serves up the html page situated in the public folder.
webpack - watches files in the node container and up...
Convexoconvex asked 24/2, 2017 at 17:57
2
Solved
I'm attempting to build a Docker image of a React+TypeScript+NodeJS application built with Webpack 2.0, but I get the following error
> [email protected] build /
> webpack -p --config c...
Kennithkennon asked 19/11, 2017 at 23:3
1 Next >
© 2022 - 2025 — McMap. All rights reserved.