react-code-dataset / react-grid-layout /webpack-dev-server.config.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
1.03 kB
"use strict";
const path = require("path");
const webpack = require("webpack");
module.exports = {
mode: "development",
context: __dirname,
entry: "./test/dev-hook.jsx",
output: {
path: "/",
filename: "bundle.js",
sourceMapFilename: "[file].map",
publicPath: "/"
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
options: {
cacheDirectory: true,
plugins: [["react-hot-loader/babel"]]
}
}
]
},
plugins: [
new webpack.DefinePlugin({
"process.env": {
NODE_ENV: JSON.stringify("development")
}
})
],
devtool: "eval",
devServer: {
compress: true,
port: 4002,
open: "index-dev.html",
client: {
overlay: true
},
static: {
directory: "."
}
},
resolve: {
extensions: [".webpack.js", ".web.js", ".js", ".jsx"],
alias: {
"react-grid-layout": path.join(__dirname, "/index-dev.js")
}
}
};