Skip to content

linxiaoki/webpack_sample_project-practice

Repository files navigation

webpack_sample_project-practice >>> 参考网址

版本:node@v8.16.2, webpack@v4.41.2

babel-loader@7,extract-text-webpack-plugin@next,..

最好使用 cnpm 下载模块

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install

git action: push 后自动发布到github pages

  1. 设置github pages 源为: branch/docs
  2. 更改 webpack.production.config.js 文件,将输出路径改为: docs(原为build路径)
  3. 使用 ssh_keygen 生成密钥,将 私有密钥添加到设置的secrets,变量名为 DEPLOY_PRIVATE_KEY,与 .github/wordflows/nodejs.yml文件使用的变量对应;将公共变量添加到本仓库设置到deploy keys
  4. 选择 Action , 添加 workflows,可以选择 node.js 模板。修改 nodejs.yml 文件内容。具体可参考文件
  5. 查看页面:https://linxiaoki.github.io/webpack_sample_project-practice/
  6. 参考:github actions 入门教程Github actions 自动发布 Hexo test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages