forked from adobe/storefront-product-listing-page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.dev.js
28 lines (26 loc) · 883 Bytes
/
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
const { merge } = require('webpack-merge');
const webpack = require('webpack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { commonConfig, publicPaths } = require('./webpack.common.js');
module.exports = merge(commonConfig, {
mode: 'development',
output: {
publicPath: publicPaths.DEV,
},
plugins: [
new webpack.DefinePlugin({
API_URL: JSON.stringify('https://catalog-service.adobe.io/graphql'),
TEST_URL: JSON.stringify(
'https://catalog-service-sandbox.adobe.io/graphql'
),
SANDBOX_KEY: JSON.stringify('storefront-widgets'),
}),
new HtmlWebpackPlugin({
title: 'LiveSearch PLP',
template: './dev-template.html',
}),
new webpack.HotModuleReplacementPlugin(),
new ForkTsCheckerWebpackPlugin(),
],
});