Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
67 views

So I have a Windows 11 PC with my password being saved in the clipboard as a pinned item, I forgot to write it down and after enabling my Microsoft account to windows I miss clicked using pin and ...
Fatemeh Sharifi's user avatar
1 vote
1 answer
105 views

I am updating my 10 year old Node website, to bring it in line with the latest software and (especially) address any possible security issues. This means implementing webpage 5, which (among much else)...
peter's user avatar
  • 337
0 votes
1 answer
2k views

I'm trying to extract text from a PDF file that has Address information, shown as below CALIFORNIA EYE SPECIALISTS MED GRP INC 1900 W GARVEY AVE S # 335 WEST COVINA CA 91790 and I'm using below logic ...
sas_python_user's user avatar
0 votes
2 answers
2k views

I'm using webpack and the extract-text-webpack-plugin to bundle a webcomponent (created using preact-custom-element) and its style. I'm able to use the component successfully in a separate html file ...
Patrick's user avatar
  • 2,295
1 vote
0 answers
184 views

Here, I am getting the following error: when I am trying to run karma tests ERROR in ./node_modules/@cwds/components/dist/Layouts/Layout.module.scss Module build failed: Error: "extract-text-webpack-...
sunil b's user avatar
  • 743
0 votes
1 answer
2k views

My directory structure is as follows: example/ ├── css/ │ ├── styles.css ├── img/ │ ├── background.jpg └── src/ ├── scss/ │ ├── app.scss └── app.js When I specify an absolute ...
Anonymous's user avatar
1 vote
0 answers
334 views

I'm working on a multi-entry web app & building with webpack 3, with using extract-text-webpack-plugin to separate entries' css in separate files. Currently, I'm trying to load some modules ...
AbdelHady's user avatar
  • 9,822
0 votes
1 answer
519 views

The normal way to use the Webpack Extract Text Plugin is as follows: const ExtractTextPlugin = require('extract-text-webpack-plugin') module.exports = { entry: { // ... }, output: { // ...
Liran H's user avatar
  • 10.8k
0 votes
4 answers
5k views

I have read every possible configuration under the sun regarding Webpack 4 to bundle .scss files into .css files. Nothing is working for me. Here is my webpack configuration: var path = require('...
Tarun's user avatar
  • 1,119
11 votes
1 answer
9k views

When using webpack 2(or 3), I could write code like: const coreStyles = new ExtractTextPlugin('./styles/core.bundle.css'); const componentStyles = new ExtractTextPlugin('./styles/components.bundle....
Shevchenko Viktor's user avatar
2 votes
0 answers
1k views

I'm using Angular (custom Webpack build procedure) together with the Workbox v.3.2.0 with workbox-webpack-plugin v.3.2.0 (InjectManifest plugin) for the precaching purposes and have difficulties with ...
Anatolii Kolesnyk's user avatar
4 votes
0 answers
734 views

In my current setup, webpack bundles css that has been imported in .js files into a separate style file and loads it after the .js bundle has finished loading. Because the .js bundle is loaded after ...
Heiki's user avatar
  • 129
4 votes
1 answer
5k views

I need to run both LESS and SCSS compilation in the same project output to separate CSS files. The project was LESS based but now adding SCSS during a transition phase. I don't want to update ...
Kerry7777's user avatar
  • 4,604
1 vote
1 answer
926 views

The only way I have successfully had webpack generate a non JavaScript file is to include an entry for the primary asset. The problem is, webpack is generating a .js file based on this asset as well, ...
Phil Sinatra's user avatar
0 votes
1 answer
1k views

My webpack.config.js: const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: [ './src/index.js', 'react-...
darKnight's user avatar
  • 6,561
0 votes
0 answers
82 views

I am getting error while compiling my scss file using webpack. I am currently using webpack v4. Webpack shows Module parse failed: Unexpected token (1:4) You may need an appropriate loader to handle ...
Chandra Shekhar's user avatar
0 votes
1 answer
582 views

this issue occurred when I import .scss file in react component. package.json "scripts": { "dev": "source ./.env && nodemon server.js" }, "devDependencies": { "babel-core": "^6.26.0", "...
Giambi Huang's user avatar
1 vote
0 answers
925 views

I have starting a new project with Next, and my main problem is the following: My app composes external components that are transpiled and installed via npm. this components require sass files I use ...
Antoine Laurent's user avatar
1 vote
0 answers
39 views

I use Webpack for an Angular application. After migration to 4 version of the bundler file style.css (created by ExtractTextPlugin) is empty (i.e. has no any content excepting the only string /*# ...
Ilya Loskutov's user avatar
1 vote
1 answer
2k views

I'm new to using webpack and I'm simply trying to get it to handle both the typescript and less files in a new empty .net core web project, and output the corresponding js and css files to a specified ...
Will P.'s user avatar
  • 8,856
0 votes
1 answer
241 views

I understand that CSS-loader just modularizes your CSS so that if you import style.css in your foo.js, whenever foo.js gets run, it has a reference to style.css such that your elements created in foo....
mangocaptain1's user avatar
1 vote
0 answers
183 views

I am "webpack": "^1.14.0", "css-loader": "^0.26.1" "sass-loader": "^4.1.1" . I see the console error addStyles.js:147 Uncaught Error: Couldn't find a style target. This probably means that the value ...
Ambarish Kumar's user avatar
0 votes
1 answer
445 views

If I'm using dev mode, style loader works fine. But when I build project and I have dist folder, I can't see style tag in head tag. What's interesting, I can't see style tag only if bundle.js file is ...
user8685433's user avatar
0 votes
1 answer
124 views

So I have an angular app which uses webpack. I haven't changed anything since December where it worked fine. But upon pulling the repo on a new machine and making sure I've run npm install followed by ...
Simon Willan's user avatar
0 votes
1 answer
838 views

Configuration webpack.config.js test: /\.css$/, exclude: /node_modules/, use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [ { loader: 'css-loader', ...
Carlos Rincon's user avatar
1 vote
0 answers
676 views

I'm using the latest of everything. I'm transpiling SASS to CSS and am referencing an image: body{ background: url("../images/ugly-car.jpg"); } The image gets changes according to my settings, but ...
jBoive's user avatar
  • 1,309
0 votes
2 answers
4k views

I am migrating from webpack 1 to 3. After going through so many errors and now I am stuck on this. Can someone please HELP! I am getting these errors - ERROR in ./src/main/main.scss Module parse ...
Shivam Kumar's user avatar
1 vote
0 answers
420 views

I want to alias the the relative font and image imports in my css and scss modules with absolute paths. The goal is store all of my font and image files in two central folders, without going through ...
Arlo Feirman's user avatar
1 vote
1 answer
2k views

I have what should be a fairly standard Webpack rule to suppose SASS files: { test: /\.scss$/, use: ExtractTextPlugin.extract({ fallback: 'style-loader', ...
Wichert Akkerman's user avatar
1 vote
2 answers
4k views

I'm building a react app and im using webpack 3 with css/sass loaders + the ExtractTextPlugin to compile my styles and generate main.css. All my scss variables, mixins and partials are compiling into ...
Majsan's user avatar
  • 13
0 votes
1 answer
2k views

I have read tons of tutorials and looked at more Github repos than I care to remember but I'm really struggling to setup Webpack 3 to do the following: Compile SASS into CSS Create a CSS file within a ...
James Howell's user avatar
  • 1,472
0 votes
1 answer
27 views

We use the Extract Text plugin with Webpack 3 and it works great but we recently hired a QA automation engineer who works in Selenium. We are discussing ways to make selecting elements with Selenium ...
Dan DiGangi's user avatar
1 vote
0 answers
167 views

I have a repo with multiple react components that need to work totally separated from each other, so every component has it's own output dir with the respective CSS, JS and HTML. To achieve this I ...
baahrens's user avatar
0 votes
1 answer
2k views

I'm using the newest version of webpack and extract-text-webpack-plugin. I am trying to following the instructions to Export Sass or LESS. I've been reading questions and answers around this all day ...
flyingL123's user avatar
  • 8,206
0 votes
1 answer
430 views

If two animations are defined in one file, this file is then included in another two files, animations get the same single letter name a which breaks one of them with lower priority (because the ...
burtyish's user avatar
  • 1,043
11 votes
1 answer
2k views

I have a simple multi-page app with three pages, my webpack.config.js entry looks like: { entry: { a: 'pages/a.js', b: 'pages/b.js', c: 'pages/c.js', } } Each page consists of several ...
wilsonpage's user avatar
  • 17.7k
5 votes
3 answers
6k views

Not Sure where am i going wrong.This is my webpack.prod for bundling client-side. but some how classNames are not appearing in my html const path = require('path'); const webpack = require('webpack');...
shubh's user avatar
  • 173
0 votes
1 answer
59 views

I know someone is going to mark this as a duplicate, but nothing on the entire web seems to be what I need. This is almost a direct copy/paste of the example found here. This is after meticulously ...
Cody's user avatar
  • 10.1k
2 votes
1 answer
2k views

Not sure if this is a bug or just my setup, I am using the CommonsChunkPlugin to get a separate common.js for three entry points in my project, and using the extract-text-webpack-plugin to get the css ...
JerryH's user avatar
  • 125
2 votes
0 answers
311 views

I have an issue with this (the title) spamming my console. I got called onto a project that I did not write and this was one of the issues one of the devs wanted fixed. webpackConfig.plugins.push( ...
asegier's user avatar
  • 55
0 votes
1 answer
873 views

I'm attempting to output a css file from bootstrap 4.0.0 beta scss using webpack. I've successfully handled scss with an inline style injection as per: https://getbootstrap.com/docs/4.0/getting-...
billy jean's user avatar
  • 1,429
0 votes
2 answers
3k views

I am looking to hot reload my window when I save a stylesheet in my text editor. Currently, I have to manually reload the page to see any changes. Below is the snippet in my Webpack configuration file ...
iknowhtml's user avatar
0 votes
1 answer
658 views

So I am trying to create a Angular (4.4.4) Webpack (3.6.0) starter with AOT build and I am running into an issue with extracting the css into a seperate bundle (using extract-text-webpack-plugin 3.0.1)...
Mr.wiseguy's user avatar
  • 4,262
0 votes
3 answers
990 views

I'm using "webpack": "^3.1.0" and "extract-text-webpack-plugin": "^1.0.1" Trying to compile sass and I get the following error: Error: "extract-text-webpack-plugin" loader is used without the ...
Filth's user avatar
  • 3,228
0 votes
0 answers
69 views

I'm having some trouble placing stylesheet tags in the correct place with extract-text-webpack-plugin and Webpack 3. My project uses third-party stylesheets pulled from a CDN, as well as a local ...
bbalan's user avatar
  • 711
2 votes
2 answers
5k views

I've been trying to use the sass-loader in webpack and I follow this instructions -> https://github.com/webpack-contrib/extract-text-webpack-plugin#extracting-sass-or-less but this not working. Can ...
Gonzalo Pincheira Arancibia's user avatar
0 votes
1 answer
134 views

Basically I want to extract css in production, but I want to leave it in the JavaScript file in development mode. This is so I can have the sourcemap working which shows the sass files used. I want ...
anonfg4rtz4aetae4tata4t's user avatar
0 votes
0 answers
104 views

I'm using the following module in my webpack config - { test: /\.css$/, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: [ { loader: "css-loader", ...
Finnnn's user avatar
  • 3,600
0 votes
1 answer
295 views

When I extract a .pug file with ExtractTextPlugin, it converts it to html but minify, as it unminify?? const extractHTML = new ExtractTextPlugin('[name]-pug.html'); .... { test: /\.pug$/, ...
Diego Santa Cruz Mendezú's user avatar
0 votes
2 answers
428 views

I'm trying to create a scaffolding for my react project and learn webpack in the process. I've been trying to get my css modularized in their own component folders and get them extracted into a single ...
mrtiev's user avatar
  • 43