Questions tagged [webpack-loader]
141 questions
0
votes
1 answer
Webpack async loader priority order
I wanna replace some code from each typescrpit during webpack compilation.
Now I have got something like this:
module: {
rules: [
{
test: /\.ts$/,
enforce: 'pre',
loader: [
…

Dariusz Filipiak
- 2,858
- 5
- 28
- 39
0
votes
1 answer
Loaders are not compiled chronologically
From docs:
A chain of loaders are compiled chronologically. The first loader in a
chain of loaders returns a value to the next.
Let's take the following webpack config, for example.
module: {
rules: [
{
test: /\.css$/,
…

manidos
- 3,244
- 4
- 29
- 65
0
votes
0 answers
Import styles for further use in the code
I am trying to apply a css stylesheet to my html page, as well as to obtain it as a string in javascript code (I want to show my stylesheets to users). I'm using css-loader and style-loader. Here's a snippet from webpack configuration file:
…

manidos
- 3,244
- 4
- 29
- 65
0
votes
1 answer
Electron-webpack: css and html loaders arent' working
I have an electron app. I want to bundle it with webpack but I just can't seem to be able to parse the css and html files.
I've added the html-loader and css-loader and this is my config file:
module.exports = {
entry: "./src/app.js",
…

yccteam
- 2,168
- 4
- 25
- 47
0
votes
0 answers
css files are not generated separately with extract-text-webpack-plugin using webpack 3
I was trying to create a separate bundle for css based on the chunks name using extract-text-webpack-plugin with webpack@3.6.0.
I have spent more time and googled on identifying on the issue, but i could not find it.
i have tried more options for…

Nishanth Reddy
- 1
- 1
0
votes
1 answer
Override webpack loader config for a specific file
I set-up my new project with vue-webpack-boilerplate, where I use the jsoneditor. The default webpack configuration bundles all image assets in the the img directory, but the jsoneditor expects its icons in the css/img directory.
I discovered the…

karlitos
- 1,604
- 3
- 27
- 59