0
0

webpack 俺的最低限設定

Posted at

Nuxtの短納期プロジェクトで採用した設定をメモ。

cleanしないでキープする

webpack.config.js
module.exports = {
  output: {
    clean: {
      keep: /index.html/,    // index.html を削除しない
    },
  }
}

ファイル名を囲むスラッシュはディレクトリを表すものではない。
正規表現のスラッシュ。

ソースマップを出力

webpack.config.js
module.exports = {
  devtool: "hidden-source-map”
}

hidden-だがこれで出力される。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0