Help us understand the problem. What is going on with this article?

docker内でgulp-cssminの一時ファイルがworking directoryに出力される場合の対処法

More than 1 year has passed since last update.

症状

gulp-cssminを動かすとworking directory内にcssの一時ファイルがドバーっと出力されてしまう

こんなの

20b12a3b-8f9e-45ef-a8cd-df849e01046e.css
25966090-e808-45dc-a294-d08bddbd22f4.css
261cef28-5a44-4fc4-8623-a4d7788cf537.css
27c4dd7d-9f66-49f1-98a9-c213297f0b12.css

対処法

Dockerfile内に以下を追加

RUN npm config set unsafe-perm true

参考: https://github.com/npm/npm/issues/4531

inumanma
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away