-
Notifications
You must be signed in to change notification settings - Fork 10
/
webpack.dev.js
33 lines (32 loc) · 1.14 KB
/
webpack.dev.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
30
31
32
33
const merge = require("webpack-merge");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const common = require("./webpack.common.js");
var webpack = require("webpack");
// const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
// .BundleAnalyzerPlugin;
const Critters = require("critters-webpack-plugin");
const MODE = "dev";
module.exports = merge(common, {
devtool: "source-map",
mode: "development",
plugins: [
// new BundleAnalyzerPlugin(),
new webpack.DefinePlugin({
MODE: `"${MODE}"`,
ENDPOINT_URL: `"https://5fd3dqj2dc.execute-api.us-east-1.amazonaws.com/v2/"`,
// ENDPOINT_URL: `"http://localhost:8001/"`,
// USER_POOL_ID: `"us-east-1_kcpcLxLzn"`,
// COGNITO_CLIENT_ID: `"77mcm1k9ll2ge68806h5kncfus"`
USER_POOL_ID: `"us-east-1_U9ls8R6E3"`,
COGNITO_CLIENT_ID: `"2511g7rmn8p70losdlh9gi9j0"`,
GA_TRACKING_ID: `""`,
GOOGLE_MAPS_API_KEY: `"AIzaSyCKtYLDl0jxML6E75rbsJxTo3_YOzr5O60"`
}),
new HtmlWebpackPlugin({
title: "Chinmaya Forms Framework - Dev",
template: "./scripts/src/index.html",
filename: `index.html`
}),
new Critters()
]
});