Sha256: a7ff8bf851bd3b5d0355a51ec3fbf797d7dc4940cf7d856e12dc797236840a01

Contents?: true

Size: 936 Bytes

Versions: 27

Compression:

Stored size: 936 Bytes

Contents

const webpack = require('webpack')
const { environment } = require('@rails/webpacker')
const jquery = require('./plugins/jquery')
const { VueLoaderPlugin } = require('vue-loader')
const vue = require('./loaders/vue')
const ManifestPlugin = require('webpack-manifest-plugin')
const customConfig = require('./custom')

const babelLoader = environment.loaders.get('babel')
babelLoader.exclude = []
environment.splitChunks()

// Merge custom config
environment.config.merge(customConfig)

environment.plugins.prepend('VueLoaderPlugin', new VueLoaderPlugin())
environment.plugins.prepend('Provide',
  new webpack.ProvidePlugin({
    $: 'jquery/src/jquery',
    jQuery: 'jquery/src/jquery',
    Popper: ['popper.js', 'default']
  })
);

environment.loaders.prepend('vue', vue)

environment.loaders.get('sass').use.splice(-1, 0, {
  loader: 'resolve-url-loader',
});

environment.plugins.prepend('jquery', jquery)
module.exports = environment

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
station-0.0.138 lib/nexmo_developer/config/webpack/environment.js
station-0.0.137 lib/nexmo_developer/config/webpack/environment.js
station-0.0.136 lib/nexmo_developer/config/webpack/environment.js
station-0.0.135 lib/nexmo_developer/config/webpack/environment.js
station-0.0.134 lib/nexmo_developer/config/webpack/environment.js
station-0.0.133 lib/nexmo_developer/config/webpack/environment.js
station-0.0.132 lib/nexmo_developer/config/webpack/environment.js
station-0.0.131 lib/nexmo_developer/config/webpack/environment.js
station-0.0.130 lib/nexmo_developer/config/webpack/environment.js
station-0.0.129 lib/nexmo_developer/config/webpack/environment.js
station-0.0.128 lib/nexmo_developer/config/webpack/environment.js
station-0.0.127 lib/nexmo_developer/config/webpack/environment.js
station-0.0.126 lib/nexmo_developer/config/webpack/environment.js
station-0.0.125 lib/nexmo_developer/config/webpack/environment.js
station-0.0.124 lib/nexmo_developer/config/webpack/environment.js
station-0.0.123 lib/nexmo_developer/config/webpack/environment.js
station-0.0.122 lib/nexmo_developer/config/webpack/environment.js
station-0.0.121 lib/nexmo_developer/config/webpack/environment.js
station-0.0.120 lib/nexmo_developer/config/webpack/environment.js
station-0.0.119 lib/nexmo_developer/config/webpack/environment.js