webpack-dev-middleware

Stylus syntax - where do imports come from?

旧城冷巷雨未停 提交于 2021-01-28 07:10:17
问题 I've got a file called "quasar.styl": @import './quasar.variables' @import '~quasar-styl' When it gets processed by webpack, using styl-loader, I get this error: failed to locate @import file ~quasar-styl.styl I have this feeling there's something about stylus I don't understand. Where would it be looking for the file "~quasar-style"? This file comes from a working boilerplate quasar app, and there isn't a file called quasar-style anywhere in the app directories, especially not is node

webpack-dev-server set cookie via proxy

吃可爱长大的小学妹 提交于 2020-12-31 04:30:15
问题 We have setup our development environment with webpack-dev-server. We use its proxy config to communicate with the backend. We have a common login page in the server which we use in all our applications. We it is called, it sets a session cookie which expected to passed with subsequent requests. We have used the following config but the cookie is not set in the browser for some reason. I can see it in response header in the network tab of dev tool. const config = { devServer: { index: "/",

webpack-dev-server set cookie via proxy

自古美人都是妖i 提交于 2020-12-31 04:30:11
问题 We have setup our development environment with webpack-dev-server. We use its proxy config to communicate with the backend. We have a common login page in the server which we use in all our applications. We it is called, it sets a session cookie which expected to passed with subsequent requests. We have used the following config but the cookie is not set in the browser for some reason. I can see it in response header in the network tab of dev tool. const config = { devServer: { index: "/",

Matching root route in webpack-dev-server's historyApiFallback`

拜拜、爱过 提交于 2020-01-24 10:59:06
问题 Sample repo demonstrating the issue is here. I'm trying to set up webpack dev server so that: Requests to / are served by public/landing.html (a static landing page) Requests to anything else are served by my React app Using create-react-app , and based on webpack-dev-server's options, I've set up my webpackDevServer.config.js as follows: historyApiFallback: { // Paths with dots should still use the history fallback. // See https://github.com/facebookincubator/create-react-app/issues/387.

ASP.NET Core The system cannot find the file specified

早过忘川 提交于 2019-12-23 15:50:21
问题 I have followed this tutorial on getting angular and ASP.NET Core running together. The initial build worked fine but after updating angular packages I am receiving the following error on startup of the application(I also had to reinstall nodejs in the process, not sure if this is related): The error is on the following line: app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions { HotModuleReplacement = true }); The error itself does not provide me with any usefull information to track

Cannot GET / error with my webpack-dev-middleware setup

牧云@^-^@ 提交于 2019-12-23 15:14:18
问题 First of all, I found many similar topics here but even after referring to them, I still haven't been able to get it working at all. So, my problem simply is that I get Cannot GET / in Chrome when I visit localhost:3000 after running my express server (using npm run serve ). It's not that it cannot find the bundle.js file; it simply cannot find the index.html. I don't see any errors on the server console when I run npm run serve script in the package.json file. Webpack build (called from

How to Configure WebpackDevServer to run an app with ASP.NET CORE 2.0 IISEXPRESS

倖福魔咒の 提交于 2019-12-11 15:38:37
问题 Using the ASP.NET Core 2.0 template for creating react app with redux i want to use the webpack-dev-server which is used in the react CRA (CREATE REACT APP) . The ASP.NET Core 2.0 app build outputs to a js (Client/Server) file and renders it on a razor page. (cshtml ) (SSR) which on run (F5) runs using the IISEXPRESS. I want to run the same using IISEXPRESS but using the WebpackDevServer since the execution in it faster especially after the initial build . I have tried the following by adding