Add test configuration file to webpack

This commit is contained in:
Yamagishi Kazutoshi 2024-01-27 02:27:07 +00:00
parent 87ad398ddc
commit 68c06b714d
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development" ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development" ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
require "pathname" require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",

8
config/webpack/test.js Normal file
View File

@ -0,0 +1,8 @@
const { merge } = require('webpack-merge');
const sharedConfig = require('./shared');
module.exports = merge(sharedConfig, {
mode: 'development',
cache: false,
});