webpack-loader Questions
6
Solved
I am working on react based nextjs app. Some npm packages are using external css import.
I am getting error like
Module parse failed, you may need an appropriate loader to handle this file type.
...
Audly asked 24/11, 2017 at 12:48
3
I was learning webpack and I came across loaders,The defination of loaders says that it transform your code,so that it can be included inside the javascript bundle.
But,How html-loader works?
The...
Anal asked 8/6, 2020 at 5:45
1
I am working on an Electron project and I have configured webpack for it. I recently installed s3-sync-client and @aws-sdk/client-s3 using npm, but when I try to run the project, I get the followin...
Seignior asked 22/3, 2023 at 11:37
1
I'm building a custom Webpack loader. What the loader does is unimportant, but it transforms JSON in some way and uses paths from the JSON in order to resolve certain other details. In my loader.js...
Ascidian asked 11/2, 2021 at 10:29
2
Solved
How to use loader for mp4 video format with webpcak 4, I try like this:
{
test: /\.mp4$/,
use: 'file-loader',
loader: 'file-loader?name=videos/[name].[ext]',
},
and import like this
impor...
Lacielacing asked 20/4, 2018 at 13:59
1
Solved
I ran into a well known problem that, however, has no clear solution: the following setup of webpack (encore, within Symfony) produces the error downloadable font: rejected by sanitizer ... in Fire...
Melina asked 17/7, 2020 at 16:25
1
Solved
I am using both vue single-file components and separating of markup and logic to .pug and .ts files respectively. If you interesting why I don't unify is please see the comments section.
Problem
im...
Lakendra asked 30/7, 2020 at 0:56
6
I have a project with miltiple configuration. The first config is config.dev.js file that contains some development configiration. I using it in development mode. The second config is config.js fil...
Pazit asked 14/7, 2018 at 12:38
1
Solved
As a bit of a fun project, I'm making a "framework" for creating native web components. I've created a webpack loader that parses some XML in custom .comp files and exports an es2015 class. Unfortu...
Patio asked 28/9, 2019 at 20:9
2
Solved
In previous versions of Angular there was an option for eject so that you could modify your webpack configuration as you please.
One of the most common use cases for this feature was adding custom ...
Wampler asked 27/6, 2018 at 18:1
0
I have a bunch of webpack entrypoints configured as described here:
module.exports = {
entry: {
pageOne: './src/pageOne.js’,
pageTwo: './src/pageTwo.js’,
pageThree: './src/pageThree.js’
}
}
...
Litigant asked 15/5, 2019 at 12:48
1
Solved
I have a big project with different types of dependencies in it: js, scss, svg, png, etc...
My webpack is configured and bundles my code, I am happy with it.
But I want to get some kind of hash of...
Seto asked 24/12, 2018 at 14:21
0
I wrote this webpack loader
module.exports = function(source) {
return `export default 'hello'`;
}
that I want to rewrite using es6 imports
export default function loader(source) {
return `ex...
Humanly asked 7/11, 2018 at 16:57
1
Solved
I'm currently working on a upgrade from Webpack 1 to 2, and then to 3. Within this upgrade, I've adhered to the migration instructions as per the instructions for 1 => 2 and for 2 => 3.
The issue...
Lighthouse asked 19/10, 2017 at 20:39
4
In my reactJS application - I am including all .scss files in one main.scss file - under styles folder in src folder. I have the following webpack configuration. tried including main.scss file dire...
Scifi asked 3/9, 2017 at 20:18
1
Solved
It seems like Webpack runs tools that transform code via "loaders", rather than using the APIs of those tools directly. This adds a layer of abstraction over those tools which sometimes means the A...
Unbowed asked 2/9, 2017 at 22:46
1
© 2022 - 2024 — McMap. All rights reserved.