initial commit
This commit is contained in:
21
webpack/dev.js
Normal file
21
webpack/dev.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import config from "./config";
|
||||
import { devPlugins } from "./options/plugins";
|
||||
|
||||
export default {
|
||||
target: "web",
|
||||
mode: "development",
|
||||
devtool: "eval-cheap-source-map",
|
||||
devServer: {
|
||||
port: process.env.PORT || 5005,
|
||||
host: config.devServer.host,
|
||||
historyApiFallback: true,
|
||||
hot: true,
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
},
|
||||
client: {
|
||||
overlay: false,
|
||||
},
|
||||
},
|
||||
plugins: devPlugins,
|
||||
};
|
||||
Reference in New Issue
Block a user