aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-01-03 06:27:13 +0100
committerMax Magorsch <max@magorsch.de>2020-01-03 06:27:13 +0100
commitae9b9907f234c6578b26ecf466756453f3115b2c (patch)
tree9087675e866c08274f4d511da682aa4d72013849 /config
parentAdd the yarnpkg dependency to the README (diff)
downloadpackages-5-ae9b9907f234c6578b26ecf466756453f3115b2c.tar.gz
packages-5-ae9b9907f234c6578b26ecf466756453f3115b2c.tar.bz2
packages-5-ae9b9907f234c6578b26ecf466756453f3115b2c.zip
Update to Bootstrap 4
Update the project to Bootstrap 4, which is a major rewrite of the entire project. So far, a Tyrian version that is based on Bootstrap 4 is included for that reason. However, in future, it may be retrieved from the CDN or installed as node module. Webpacker is bundeling all of the javascript code and stylesheets. Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'config')
-rw-r--r--config/webpack/environment.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index 1ff444b..d29c52e 100644
--- a/config/webpack/environment.js
+++ b/config/webpack/environment.js
@@ -1,9 +1,15 @@
const { environment } = require('@rails/webpacker')
+// resolve-url-loader must be used before sass-loader
+environment.loaders.get('sass').use.splice(-1, 0, {
+ loader: 'resolve-url-loader'
+});
+
const webpack = require('webpack')
environment.plugins.append('Provide', new webpack.ProvidePlugin({
- $: 'jquery/src/jquery',
- jQuery: 'jquery/src/jquery'
+ $: 'jquery/dist/jquery',
+ jQuery: 'jquery/dist/jquery',
+ Popper: ['popper.js', 'default']
}))