You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/config/webpack.dev.ts

27 lines
781 B

import * as webpack from 'webpack';
import * as merge from 'webpack-merge';
import { outputDir } from './outputPath';
import common from './webpack.common';
import * as AddAssetHtmlPlugin from "add-asset-html-webpack-plugin";
const config: webpack.Configuration = merge(
common,
{
mode: "development",
output: { pathinfo: false },
devtool: "cheap-module-eval-source-map",
devServer: {
contentBase: outputDir,
port: 7778,
hot: true
},
plugins: [
new webpack.NamedModulesPlugin(),//Hot
new webpack.HotModuleReplacementPlugin(),//Hot
new AddAssetHtmlPlugin([{ filepath: "./node_modules/three/build/three.js" }])
]
}
);
export default config;