How to use the @rails/webpacker.merge function in @rails/webpacker

To help you get started, we’ve selected a few @rails/webpacker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github decidim / decidim / decidim-core / lib / decidim / webpacker / webpack / base.js View on Github external
/* eslint-disable */

const { webpackConfig, merge } = require("@rails/webpacker")
const customConfig = require("./custom")

module.exports = merge(webpackConfig, customConfig)
github decidim / decidim / decidim_app-design / config / webpack / base.js View on Github external
/* eslint-disable */

const { webpackConfig, merge } = require("@rails/webpacker")
const customConfig = require("./custom")

module.exports = merge(webpackConfig, customConfig)
github danbooru / danbooru / config / webpack / development.js View on Github external
process.env.NODE_ENV = process.env.NODE_ENV || 'development'

const { merge } = require('@rails/webpacker')
const webpackConfig = require('./base');
const ESLintPlugin = require('eslint-webpack-plugin');

module.exports = merge(webpackConfig, {
  plugins: [
    new ESLintPlugin({
      cache: true,
      threads: true,
      emitWarning: true
    })
  ]
});
github shakacode / react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh / config / webpack / commonWebpackConfig.js View on Github external
const commonWebpackConfig = () =>
  merge({}, baseClientWebpackConfig, commonOptions)
github danbooru / danbooru / config / webpack / base.js View on Github external
const { webpackConfig, merge } = require('@rails/webpacker')

module.exports = merge(webpackConfig, {
  output: {
    library: "Danbooru",
  },
  resolve: {
    alias: {
      "jquery": "jquery/src/jquery.js",
      "react": "preact/compat",
      "react-dom": "preact/compat",
    }
  },
  module: {
    rules: [{
      test: /.erb$/,
      enforce: "pre",
      exclude: /node_modules/,
      loader: "rails-erb-loader",