aboutsummaryrefslogtreecommitdiff
path: root/config/webpack
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-05 14:11:43 +0200
committerhellekin <hellekin@cepheide.org>2020-10-05 14:11:43 +0200
commit8fa725f194b129e11514c2291067576c886c3232 (patch)
tree9695f9f2a311a899a4a4342a8e17a7371876f7e2 /config/webpack
downloadincommon-map-8fa725f194b129e11514c2291067576c886c3232.tar.gz
rails new incommon-map -d postgresql -C -T
Diffstat (limited to 'config/webpack')
-rw-r--r--config/webpack/development.js5
-rw-r--r--config/webpack/environment.js3
-rw-r--r--config/webpack/production.js5
-rw-r--r--config/webpack/test.js5
4 files changed, 18 insertions, 0 deletions
diff --git a/config/webpack/development.js b/config/webpack/development.js
new file mode 100644
index 0000000..c5edff9
--- /dev/null
+++ b/config/webpack/development.js
@@ -0,0 +1,5 @@
+process.env.NODE_ENV = process.env.NODE_ENV || 'development'
+
+const environment = require('./environment')
+
+module.exports = environment.toWebpackConfig()
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
new file mode 100644
index 0000000..d16d9af
--- /dev/null
+++ b/config/webpack/environment.js
@@ -0,0 +1,3 @@
+const { environment } = require('@rails/webpacker')
+
+module.exports = environment
diff --git a/config/webpack/production.js b/config/webpack/production.js
new file mode 100644
index 0000000..be0f53a
--- /dev/null
+++ b/config/webpack/production.js
@@ -0,0 +1,5 @@
+process.env.NODE_ENV = process.env.NODE_ENV || 'production'
+
+const environment = require('./environment')
+
+module.exports = environment.toWebpackConfig()
diff --git a/config/webpack/test.js b/config/webpack/test.js
new file mode 100644
index 0000000..c5edff9
--- /dev/null
+++ b/config/webpack/test.js
@@ -0,0 +1,5 @@
+process.env.NODE_ENV = process.env.NODE_ENV || 'development'
+
+const environment = require('./environment')
+
+module.exports = environment.toWebpackConfig()