2024-03-08 23:08:43 +00:00
|
|
|
import {merge} from 'webpack-merge';
|
|
|
|
import common from "./webpack.common.js"
|
|
|
|
import webpack from 'webpack'
|
2024-03-05 02:40:32 +00:00
|
|
|
|
2024-03-08 23:08:43 +00:00
|
|
|
const config = merge(common, {
|
2024-03-05 02:40:32 +00:00
|
|
|
mode: "development",
|
|
|
|
devtool: 'inline-source-map',
|
|
|
|
plugins: [
|
|
|
|
new webpack.EnvironmentPlugin({
|
|
|
|
NODE_ENV: "development",
|
|
|
|
BASE_URL: "http://localhost:8080"
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
devServer: {
|
|
|
|
static: "./dist",
|
|
|
|
headers: {
|
|
|
|
"Access-Control-Allow-Origin": "*",
|
|
|
|
'Access-Control-Allow-Headers': '*',
|
|
|
|
'Access-Control-Allow-Methods': '*',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2024-03-08 23:08:43 +00:00
|
|
|
|
|
|
|
export default config
|