-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
// 各種プラグインのロード | ||
const path = require("path"); | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
|
||
// ビルド先パス | ||
const DEST_PATH = path.join(__dirname, "./public"); | ||
const DEST_PATH = path.join(__dirname, './public'); | ||
|
||
// 開発用の設定追加分 | ||
module.exports = merge(common[0], { | ||
mode: 'development', | ||
devtool: 'source-map', | ||
devtool: 'source-map', | ||
devServer: { | ||
contentBase: DEST_PATH, | ||
watchContentBase: true, | ||
port: 3000, | ||
open: true, | ||
}, | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// 各種プラグインのロード | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
|
||
// 本番用の設定追加分 | ||
module.exports = merge(common[0], { | ||
mode: 'production', | ||
devtool: false, | ||
}); | ||
}); |