GithubHelp home page GithubHelp logo

Comments (8)

mythsman avatar mythsman commented on July 28, 2024

唉,重构一把一堆坑😮‍💨

from hexo-douban.

AlliotTech avatar AlliotTech commented on July 28, 2024

别慌 哈哈哈 生成后的文件压缩了,没去细看代码,

{value:void 0)

似乎是}没对应

from hexo-douban.

mythsman avatar mythsman commented on July 28, 2024

你有没有引一些奇奇怪怪的压缩插件?我这里生成的是正常的,不知道为啥到你那边 } 没了。。。

from hexo-douban.

AlliotTech avatar AlliotTech commented on July 28, 2024
"hexo-optimize": "^3.3.0",  
# pnpm install hexo-optimize
# 静态资源压缩
filter_optimize:
  enable: true
  # static resource versioning
  versioning: false
  css:
    # minify all css files
    minify: true
    excludes:
    # use preload to load css elements dynamically
    delivery:
      - '@fortawesome/fontawesome-free'
      - 'fonts.googleapis.com'
    # make specific css content inline into the html page
    inlines:
      # support full path only
      - css/main.css
  js:
    # minify all js files
    minify: true
    excludes:
    # remove the comments in each of the js files
    remove_comments: false
  html:
    # minify all html files
    minify: true
    excludes:
  # set the priority of this plugin,
  # lower means it will be executed first, default of Hexo is 10
  priority: 12

只有这一个

from hexo-douban.

mythsman avatar mythsman commented on July 28, 2024

的确,加了这个我也寄了。。。

from hexo-douban.

mythsman avatar mythsman commented on July 28, 2024

把html.minify关了好像就好了。。。

from hexo-douban.

mythsman avatar mythsman commented on July 28, 2024

升 2.3.3 兼容了一把。

from hexo-douban.

AlliotTech avatar AlliotTech commented on July 28, 2024

nice ! 测试已正常

from hexo-douban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.