annotate config/webpack/environment.js @ 472:b26dd8fa1c26 bootstrap-4

Update link to source
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 22:42:15 +0900
parents 68231013b01b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
468
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
1 const { environment } = require('@rails/webpacker')
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
2 const coffee = require('./loaders/coffee')
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
3
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
4 const webpack = require('webpack')
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
5 environment.plugins.append('Provide',
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
6 new webpack.ProvidePlugin({
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
7 $: 'jquery',
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
8 })
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
9 )
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
10
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
11 environment.loaders.prepend('coffee', coffee)
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents:
diff changeset
12 module.exports = environment