Mercurial > zeropaste
view config/webpack/environment.js @ 474:389d2f995010
Update to bundler 2
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 30 Apr 2020 03:54:21 +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