Sha256: 38df9ed1464f9de1ab01615aeb29edb17e571a15ef5055c3171c747b4742af3f
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin") const output = { filename: "bundle.js", } if (process.env.NODE_ENV === 'production') { output.path = path.resolve(__dirname, "lib/procon_bypass_man/web/public/"); } else { output.path = path.resolve(__dirname, "dist"); } module.exports = { mode: process.env.NODE_ENV || "development", entry: "./src/app.tsx", resolve: { extensions: [".ts", ".tsx", ".js", ".json"], }, watch: false, output: output, plugins: [ new HtmlWebpackPlugin({ title: "PBM Web", filename: "index.html", template: "src/index.html", }), ], module: { rules: [ { test: /\.(js|ts|tsx)$/, exclude: /node_modules/, use: { loader: "babel-loader", }, }, { test: /\.(ts|tsx)$/, loader: 'ts-loader', exclude: [/node_modules/], }, ] }, devServer: { hot: true, historyApiFallback: true, overlay: { warnings: true, errors: true, }, proxy: { '/api': { target: 'http://localhost:9090', } }, }, };
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
procon_bypass_man-web-0.1.3 | webpack.config.js |
procon_bypass_man-web-0.1.2 | webpack.config.js |
procon_bypass_man-web-0.1.1 | webpack.config.js |
procon_bypass_man-web-0.1.0 | webpack.config.js |