retrospring/config/webpack/environment.js

17 lines
448 B
JavaScript
Raw Normal View History

const path = require('path')
2020-12-24 23:26:54 +01:00
const { environment } = require('@rails/webpacker')
const coffee = require('./loaders/coffee')
2020-12-24 23:26:54 +01:00
environment.loaders.prepend('coffee', coffee)
environment.config.merge({
resolve: {
alias: {
retrospring: path.resolve(__dirname, '..', '..', 'app/javascript/retrospring'),
utilities: path.resolve(__dirname, '..', '..', 'app/javascript/retrospring/utilities')
}
}
})
2020-12-24 23:26:54 +01:00
module.exports = environment