Sha256: 463c4b49c850d5dd4728fa41a478e69467167e133f5c2e038d746bbbb5834572

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

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

const webpack = require('webpack')
environment.plugins.prepend('Provide',
  new webpack.ProvidePlugin({
    $: require.resolve('jquery'),
    jQuery: require.resolve('jquery'),
    Popper: ['popper.js', 'default']
  })
)

const { add_paths_to_environment } = require(
  // `${environment.plugins.get('Environment').defaultValues["PWD"]}/config/environments/_add_gem_paths`
  `/tmp/_add_gem_paths`
)
add_paths_to_environment(environment)

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spotlight_search-0.3.4 lib/generators/spotlight_search/templates/environment.js
spotlight_search-0.3.3 lib/generators/spotlight_search/templates/environment.js
spotlight_search-0.3.2 lib/generators/spotlight_search/templates/environment.js
spotlight_search-0.3.1 lib/generators/spotlight_search/templates/environment.js
spotlight_search-0.3.0 lib/generators/spotlight_search/templates/environment.js