mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-24 17:08:26 +01:00
33 lines
781 B
JavaScript
33 lines
781 B
JavaScript
|
const webpack = require('webpack');
|
||
|
const merge = require('webpack-merge');
|
||
|
const common = require('./webpack.common.js');
|
||
|
const path = require('path');
|
||
|
const CopyPlugin = require("copy-webpack-plugin");
|
||
|
const VERSION = "v0.1.0";
|
||
|
|
||
|
var merged = merge.merge(common, {
|
||
|
mode: "development",
|
||
|
devtool: "source-map",
|
||
|
devServer: {
|
||
|
static: {
|
||
|
directory: path.join(__dirname, "static"),
|
||
|
},
|
||
|
port: 9000,
|
||
|
headers: {
|
||
|
'Cache-Control': 'no-store',
|
||
|
},
|
||
|
},
|
||
|
watchOptions: {
|
||
|
aggregateTimeout: 200,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
var definePlugin = new webpack.DefinePlugin({
|
||
|
__SHVERSION__: JSON.stringify(VERSION),
|
||
|
__SHBUILD__: JSON.stringify("devbuild"),
|
||
|
});
|
||
|
merged.plugins.push(definePlugin);
|
||
|
|
||
|
module.exports = merged;
|
||
|
|