aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorTravis Fischer <[email protected]>2021-06-02 13:59:27 -0400
committerTravis Fischer <[email protected]>2021-06-02 13:59:27 -0400
commitf6321fc3249d83a0059ef47978ed101d3c75375f (patch)
tree9da8b59a0c94c08f92506e57653b8c9f55fa85e8 /webpack.config.js
downloadcf-image-proxy-f6321fc3249d83a0059ef47978ed101d3c75375f.tar.xz
cf-image-proxy-f6321fc3249d83a0059ef47978ed101d3c75375f.zip
feat: import from notion2site repo
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..8ea63a0
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,11 @@
+'use strict'
+
+const { EnvironmentPlugin } = require('webpack')
+const pick = require('lodash.pick')
+
+module.exports = {
+ target: 'webworker',
+ entry: './src/index.js',
+ devtool: 'cheap-source-map',
+ plugins: [new EnvironmentPlugin(pick(process.env, ['NODE_ENV']))]
+}