question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not working wds without svg

See original GitHub issue

If you run wds with an empty icon folder and then add icons, then the svg-spritemap-webpack-plugin will not work.

But if you run wds with any icon, then adding new svg-spritemap-webpack-plugin will work fine.

config:

const SvgSpriteMapWebpackPlugin = require('svg-spritemap-webpack-plugin')
const cwd = require('../cwd')

module.exports = [
  new SvgSpriteMapWebpackPlugin(cwd('src/static/icons/*.svg'),
    {
      output: {
        filename: 'assets/sprite/sprite.svg',
        svgo: true
      },
      sprite: {
        prefix: false,
        generate: {
          title: false
        }
      }
    }
  )
]
const { merge } = require('webpack-merge')
const dev = require('./webpack.dev')
const cwd = require('./slices/cwd')

module.exports = merge(dev, {
  devServer: {
    injectClient: true,
    contentBase: cwd('dist'),
    watchContentBase: true,
    port: 8080,
    open: true,
    overlay: {
      warnings: true,
      errors: true
    }
  }
})

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cascornelissencommented, Dec 10, 2020

These changes were included in 3.8.0, thanks once more for reporting the issue! 🚀

0reactions
wakenbycommented, Dec 9, 2020

Perfect work!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WDS on cd problems with IE 11
well after updating to IE 11 WDS on my computer does not work anymore. It says Browser ok : NO and SVG plugin...
Read more >
WDS (Wireless Distribution System) is not working
It seems as if WDS is not working. With the laptop I can only ping the TP-Link (the D-Link or other LAN computers...
Read more >
WDS "There are no images available" - TechNet - Microsoft
The most common causes of this problem are: 1) The boot image may not contain the correct network driver for the client computer....
Read more >
How to Image With Windows Deployment Services (WDS)
1. Install Windows Deployment Services (WDS) Role. In server manager, right click roles and select add role. The add role wizard should come...
Read more >
You may need an appropriate loader to handle this file type ...
i 「wds」: Project is running at http://localhost:8080/ i 「wds」: webpack output is served from / i 「wds」: Content not from webpack is served ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found