Skip to content

webpack 插件,使用 github action 部署github page项目时,会自动添加`route` base 路径,和自动注入`ROUTE_PREFIX` 变量

Notifications You must be signed in to change notification settings

hankliu62/autobase-webpack-plugin

Repository files navigation

autobase-webpack-plugin

创建一个Webpack插件,自动设置基础路径(base)和环境变量。

在 Github Pages 项目中,编译的文件需要加项目repo的前缀

example

import webpack from 'webpack';
import AutoBaseWebpackPlugin from 'autobase-webpack-plugin';

export default {
  plugins: [
    AutoBaseWebpackPlugin()
  ]
};

About

webpack 插件,使用 github action 部署github page项目时,会自动添加`route` base 路径,和自动注入`ROUTE_PREFIX` 变量

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published