seedling/source/ui/scripts/webpack-dev.js

18 lines
411 B
JavaScript
Raw Normal View History

const { merge } = require('webpack-merge');
const common = require('./webpack-common');
2023-12-22 17:48:27 +00:00
const myEnv = require('dotenv').config({ path: 'config/app/.env.local' }).parsed;
module.exports = (env, args) => {
return merge(common(env, args, myEnv), {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
host: '0.0.0.0',
port: '3330',
hot: true,
historyApiFallback: true,
},
});
};