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

Add: npmパッケージをできる範囲でアップデートする #312

Open
manabuyasuda opened this issue Sep 7, 2021 · 4 comments
Open

Comments

@manabuyasuda
Copy link
Owner

No description provided.

@manabuyasuda
Copy link
Owner Author

「gulp-imagemin」は8.0.0からESModulesに変更されている。
すべてのパッケージをrequireからimportに変更する必要があるため、7.1.0に指定して回避する。

https://crieit.net/posts/gulp-imagemin-become-pure-esm-package-20210817

@manabuyasuda
Copy link
Owner Author

manabuyasuda commented Sep 7, 2021

「gulp-sass」のv5から明示的にデフォルトコンパイラを指定する必要がある。

gulp-sass 5 does not have a default Sass compiler; please set one yourself.
Both the `sass` and `node-sass` packages are permitted.
For example, in your gulpfile:

  var sass = require('gulp-sass')(require('sass'));

npm i -D sassで「sass」をインストール。

const sass = require('gulp-sass');

から

const sass = require('gulp-sass')(require('sass'));

に変更した。

@manabuyasuda
Copy link
Owner Author

sass-mqも警告が出てしまうが、npm i sass-mq@nextでいったん解消できる。
sass-mq/sass-mq#142

@manabuyasuda
Copy link
Owner Author

gulp-notify: [Error running Gulp] Error: [object Object] is not a PostCSS plugin

npm i --save-dev postcssで直った。
https://qiita.com/oreo3@github/items/4fcce64ee116045c114d

manabuyasuda added a commit that referenced this issue Oct 13, 2021
manabuyasuda added a commit that referenced this issue Oct 13, 2021
manabuyasuda added a commit that referenced this issue Oct 13, 2021
manabuyasuda added a commit that referenced this issue Oct 14, 2021
manabuyasuda added a commit that referenced this issue Oct 14, 2021
manabuyasuda added a commit that referenced this issue Oct 20, 2021
README.mdに説明を、pugにはコード例を設定。
出力ファイル名を修正。

#312
manabuyasuda added a commit that referenced this issue Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant