加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.dev.js 892 Bytes
一键复制 编辑 原始数据 按行查看 历史
见齐 提交于 2021-08-07 16:49 . fix: dev
const common = require("./webpack.common.js");
const { merge } = require("webpack-merge");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = merge(common, {
entry: {
anichart: "./src/index.ts",
test: "./test/index.ts",
},
output: {
filename: "[name].js",
},
mode: "development",
devtool: "inline-source-map",
devServer: {
contentBase: ["./test", "./node_modules/@ffmpeg/core/dist"],
index: "index.html",
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
},
},
module: {
rules: [
{
test: /\.csv/,
loader: "file-loader",
options: {
outputPath: "data",
},
},
],
},
plugins: [
new HtmlWebpackPlugin({
title: "Test",
meta: {
referrer: "never",
},
}),
],
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化