view config/webpack/environment.js @ 488:994ae0349ade

Update all the javascripts
author nanaya <me@nanaya.net>
date Tue, 17 Jan 2023 01:53:36 +0900
parents 68231013b01b
children
line wrap: on
line source

const { environment } = require('@rails/webpacker')
const coffee =  require('./loaders/coffee')

const webpack = require('webpack')
environment.plugins.append('Provide',
  new webpack.ProvidePlugin({
    $: 'jquery',
  })
)

environment.loaders.prepend('coffee', coffee)
module.exports = environment