-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
29 lines (29 loc) · 915 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// module.exports = {
// mode: process.env.NODE_ENV === "production" ? "production" : "development",
// devtool: "inline-source-map",
// entry: "./src/index.tsx",
// output: {
// path: __dirname + "/build",
// filename: "bundle.js",
// },
// devServer: {
// inline: true,
// contentBase: "./build",
// port: 3000,
// },
// resolve: {
// extensions: [".ts", ".tsx", ".js"],
// },
// module: {
// rules: [
// { test: /\.tsx?$/, exclude: /node_modules/, loader: "ts-loader" },
// { test: /\.js$/, use: ["source-map-loader"], enforce: "pre" },
// { test: /\.css$/, use: ["style-loader", "css-loader"] },
// ],
// },
// plugins: [new CopyPlugin({
// patterns: [
// { from: path.resolve(__dirname, 'src/*', '**', '*'), }
// ],
// }),],
// };