We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all,
I just tried to create an sprite with some svg images but, the svg is all white in the code is there but cannot see any icon there,
my webpack config is this one
`const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); const SpriteLoaderPlugin = require("svg-sprite-loader/plugin");
module.exports = merge(common, { mode: 'development', module: { rules: [ { test: /.(js|jsx)$/, loader: "babel-loader", exclude: /node_modules/, options: { cacheDirectory: true } }, { test: /.svg$/, loader: "svg-sprite-loader", include: path.resolve(__dirname, 'src/icons'), options: { extract: true, spriteFilename: "../src/icons/images.svg" } }, { test: /.css$/, use: [ 'style-loader', 'css-loader' ] },
],
}, plugins: [ new SpriteLoaderPlugin() ], });`
tks for the help !!
The text was updated successfully, but these errors were encountered:
@Zombiemx Hi! What version of webpack do you use? Or maybe you already solved this problem?
Sorry, something went wrong.
No branches or pull requests
Hi all,
I just tried to create an sprite with some svg images but, the svg is all white in the code is there but cannot see any icon there,
my webpack config is this one
`const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const SpriteLoaderPlugin = require("svg-sprite-loader/plugin");
module.exports = merge(common, {
mode: 'development',
module: {
rules: [
{
test: /.(js|jsx)$/,
loader: "babel-loader",
exclude: /node_modules/,
options: {
cacheDirectory: true
}
},
{
test: /.svg$/,
loader: "svg-sprite-loader",
include: path.resolve(__dirname, 'src/icons'),
options: {
extract: true,
spriteFilename: "../src/icons/images.svg"
}
},
{ test: /.css$/, use: [ 'style-loader', 'css-loader' ] },
},
plugins: [
new SpriteLoaderPlugin()
],
});`
tks for the help !!
The text was updated successfully, but these errors were encountered: