Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot minify NexT local search script #48

Open
wafer-li opened this issue Jan 22, 2018 · 3 comments
Open

Cannot minify NexT local search script #48

wafer-li opened this issue Jan 22, 2018 · 3 comments
Labels

Comments

@wafer-li
Copy link

Cannot minify NexT local search script.

But using the uglify-es in command line could minify it.

Here is the script: https://github.com/theme-next/hexo-theme-next/blob/master/layout/_third-party/search/localsearch.swig

And my package.json:

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.4.4"
  },
  "dependencies": {
    "hexo": "^3.4.4",
    "hexo-all-minifier": "^0.5.1",
    "hexo-deployer-git": "^0.3.1",
    "hexo-filter-plantuml": "^1.0.2",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-atom-markdown-writer-meta": "^0.1.1",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.0",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-seo-friendly-sitemap": "0.0.21",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-markdown-it-plus": "^1.0.2",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.3.1",
    "hexo-symbols-count-time": "^0.2.0",
    "markdown-it-criticmarkup": "0.0.1",
    "markdown-it-task-lists": "^2.1.0"
  }
}

And my minifiers config:

# Minifier
all_minifier: true

## HTML
html_minifier:
  enable: true
  ignore_error: false
  silent: false
  exclude:

## CSS
css_minifier:
  enable: true
  silent: false
  exclude:
    - '*.min.css'

## JS
js_minifier:
  enable: true
  mangle: true
  silent: false
  exclude:

# Image
image_minifier:
  enable: true
  interlaced: false
  multipass: false
  optimizationLevel: 2
  pngquant: false
  progressive: false
  silent: false

# JS Concator
js_concator:
  enable: true
  bundle_path: '/js/bundle.js'
  front: true
  silent: false
@chenzhutian
Copy link
Owner

Sorry for late reply.
will be checked recently.
I am currently busy working on my paper.

@biaomingzhong
Copy link

Same issue

@njzjz
Copy link
Contributor

njzjz commented Feb 27, 2021

I think this issue has already been solved by #105.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants