UNPKG

timekit-sdk

Version:

JavaScript SDK for the Timekit API (timekit.io)

24 lines (23 loc) 614 B
const path = require('path'); const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = merge(common, { mode: 'development', devtool: 'inline-source-map', devServer: { compress: true, allowedHosts: 'all', historyApiFallback: true, static: { publicPath: '/', directory: path.resolve(__dirname, 'dist'), }, }, plugins: [ new HtmlWebpackPlugin({ filename: 'index.html', template: path.resolve(__dirname, 'public/index.html'), }), ], });