Skip to content

support unplugin-icons / add example for unplugin ecosystem.

Compare
Choose a tag to compare
@IndexXuan IndexXuan released this 15 Sep 02:27
· 11 commits to main since this release

unplugin-icons use ~icon/aaa/bbb while this ~ is not css-loader syntax and should not replaced it with empty string. this publish hack the alias regexp for ~ and make unplugin-icons works. Thanks @Akryum.

add example for unplugin ecosystem, unplugin and vue-cli-plugin-vite plays well in nature. very nice.

  module.exports = {
    lintOnSave: process.env.NODE_ENV !== 'production',
    devServer: {
      overlay: false,
    },
    configureWebpack: {
      plugins: [require('unplugin-icons/webpack')({ compiler: 'vue2' })],
    },
    pluginOptions: {
      vite: {
        disabledTypeChecker: true,
        plugins: [require('unplugin-icons/vite')({ compiler: 'vue2' })],
      },
    },
  }