365体育足球滚球比分

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences any time.

Questions tagged [webpack]

Webpack is JavaScript module bundler. Webpack takes modules with dependencies and generates static assets representing those modules. Webpack's key features are rooted in extensibility and enabling developers to use best-practices in Web Architecture and Web Performance.

Filter by
Sorted by
Tagged with
1
vote
0answers
4 views

specify different development and production tsconfig file in webpack depending on NODE_ENV

I have two different files tsconfig.dev.json and tsconfig.prod.json and I'm trying to switch between these depending on whether webpack is run in development or production mode (-d/-p). Here is my ...
0
votes
0answers
5 views

Why webpack imports all files in subdirectory instead of the right

I have React app which render 300 pages. They are divided into 4 groups. There are common settings, custom settings for each group and settings for each page in .json files. I don't want to load all ...
0
votes
0answers
8 views

Unexpected token '.', webpack, css-loader

I think i have problem with css-loader. Can't compile app and get "SyntaxError: Unexpected token '.'" in console. webpack.config.js module: { rules: [ { test: /\....
0
votes
0answers
4 views

Rails 6 Webpacker Deployment to heroku error with expose-loader

I get these error messages when deploying to Heroku with a Rails 6.0.2.2 application with Webpacker: remote: ERROR in js/application-061dc8049445f21b13f5.js from Terser remote: ...
0
votes
0answers
9 views

How can I set webpack public path on each server request?

I have a webpack config for client and server, the server can access the bundled code such that I can call react.renderToString(<App>) to produce server-side-rendered content (and then content ...
0
votes
0answers
9 views

webpack output filename is not picked giving default filename as main.js

i have a sample webpack configuration js file with below config module.exports = { entry: "./src/index.js", output: { filename: "bundle.js", path: "./dist/" }, mode: "none" }; here i ...
1
vote
1answer
15 views

Failure to bundle a React component library via Webpack, but it works via Babel

Similarly as described in this article, I'm writing a library of React components ("my-react-components"). These components are to be used in several client applications, one of them being named "my-...
0
votes
0answers
9 views

What might cause `gatsby develop` to get stuck while building “development bundle”?

I've made a Gatsby starter, and two separate people have reported to me that they are unable to run it, because it gets stuck while building a "development bundle". Neither development nor production ...
0
votes
0answers
13 views

Is there a way to pass parameters to environment.ts in Angular during the build?

I would like to have a dynamic value in environment.ts and to pass it when i build using a command like: npm run build --productVersion="1.1.15.2" But i would like that these productVersion come ...
0
votes
0answers
8 views

VueJs: Loading failed for the script with source chunk-vendors

I have a VueJS project deployed (production mode) and sometimes (very rarely) when I try to access to the page, I see a blank screen and it takes a few minutes to load the page. Since this happens ...
0
votes
1answer
10 views

React. You can now view Local: at: http://localhost:3000. But sometimes does not On Your Network: http: //192.168 X.XXXX:YYYY

React You can now view Local: http://localhost:3000. But sometimes does not view On Your Network: http: //192.168.1.246:3000 What to do, If you want to see markup on another devises in the same ...
1
vote
0answers
42 views

ReactJS: Importing symlinked components error: Module parse failed: Unexpected token: You may need an appropriate loader to handle this file type

I'm writing a React component library which I want to use in other projects without much overhead ( bit, create-react-library, generact, etc. ) and without publishing. I want to use npm install ../...
0
votes
1answer
10 views

Making Kafka.js external dependency using webpack in node as a commonjs module

I'm trying to make kafkajs external dependency (move out from webpack bundle) with this config: externals: { kafkajs: 'kafkajs', redis: 'redis' } Dependencies: dependencies: { ... ...
0
votes
0answers
13 views

Rails 6 - How to include javascript_pack_tag in js.erb file

The pretty straightforward thing I would like to achieve. In js.erb file in my example new.js.erb I want to add my shared js $('body').append('<%= j render partial: 'web/members/new_modal' %>');...
0
votes
1answer
25 views

Importing jQuery in webpack doesn't work, $ is not defined

My project has been working with including the external jquery-2.1.1.min.js file for a few years now without issues. Now I want to start learnning webpack and try to migrate the same project to using ...

15 30 50 per page
1
2 3 4 5
2026