gotelem/web/webpack.dev.js

24 lines
607 B
JavaScript
Raw Permalink Normal View History

import {merge} from 'webpack-merge';
import common from "./webpack.common.js"
import webpack from 'webpack'
2024-03-05 02:40:32 +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': '*',
},
},
})
export default config