annotate config/webpack/environment.js @ 484:84ca55a0568e
Fix pasting base64 gzip and fix tests
author |
nanaya <me@nanaya.pro> |
date |
Sun, 28 Nov 2021 20:01:18 +0900 |
parents |
68231013b01b |
children |
|
rev |
line source |
468
|
1 const { environment } = require('@rails/webpacker')
|
|
2 const coffee = require('./loaders/coffee')
|
|
3
|
|
4 const webpack = require('webpack')
|
|
5 environment.plugins.append('Provide',
|
|
6 new webpack.ProvidePlugin({
|
|
7 $: 'jquery',
|
|
8 })
|
|
9 )
|
|
10
|
|
11 environment.loaders.prepend('coffee', coffee)
|
|
12 module.exports = environment
|