bridgetown-core 1.1.0.beta1 → 1.1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95b4ce1888886fbccd72391216d1298ce7d20e6bfb506ceedab3208881b4d25c
4
- data.tar.gz: 712ddfbba10913becc4fb800a499ce602d9e2848f395b87cf8c205d97000ab2e
3
+ metadata.gz: 423677a019c8efddafcee904aa9c5aaa8bb9faed27e9ef7c33afc0bf42994b5a
4
+ data.tar.gz: 0ac8e9e2f6b954dac8e43892ed9313e7068d4c5038fe8fe3186949f288818a87
5
5
  SHA512:
6
- metadata.gz: 1efd58dbca74ae1f3903bd91e225c28abb74131a5b1bc1885b7cac696d5f97a6a1ee7b973fed4d9ad2a90fec9ccc610f4ab19c4cb60666bfeafc0f4cda28f715
7
- data.tar.gz: 545fe04a5338166bf02927395c131d65a822b524b551865bc558dd1e4ffa4c1438ace43bad4fe09a29e980c77d458bcc9876a249bbf4598d45764f471693521b
6
+ metadata.gz: e43c335ccf732d3ff398b4e141d38ff77c8ef1a0d3d583b9c7f1a3632f55a4ef0441f09db48e8a80544e29edfda3ef7f7f52facd3f912ab3fd2524d7d7b1117e
7
+ data.tar.gz: 5dac3b8ff53a144f61106debf2dcfd44a0c4c05e31951d1b81c48c5c815382ea2c256a1d5a155a0c5668dae4efd1f9293e9200f32596688b603cf0b34f48a234
@@ -8,7 +8,7 @@ say "🎉 Webpack configuration updated successfully!"
8
8
  return if Bridgetown.environment.test?
9
9
 
10
10
  required_packages = %w(esbuild esbuild-loader css-loader@6.7.1 webpack@5.72.0 webpack-cli@4.9.2 webpack-manifest-plugin@5.0.0)
11
- redundant_packages = %w(@babel/core @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators @babel/plugin-transform-runtime @babel/preset-env babel-loader)
11
+ redundant_packages = %w(@babel/core @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators @babel/plugin-transform-runtime @babel/preset-env babel-loader file-loader)
12
12
 
13
13
  say "Installing required packages"
14
14
  run "yarn add -D --tilde #{required_packages.join(" ")}"
@@ -81,22 +81,18 @@ const cssRules = {
81
81
 
82
82
  const fontsRule = {
83
83
  test: /\.woff2?$|\.ttf$|\.eot$/,
84
- loader: "file-loader",
85
- options: {
86
- name: "[name]-[contenthash].[ext]",
87
- outputPath: "../fonts",
88
- publicPath: "../fonts",
89
- },
84
+ type: "asset/resource",
85
+ generator: {
86
+ filename: "../fonts/[name]-[hash][ext][query]"
87
+ }
90
88
  }
91
89
 
92
90
  const imagesRule = {
93
91
  test: /\.png?$|\.gif$|\.jpg$|\.svg$/,
94
- loader: "file-loader",
95
- options: {
96
- name: "[path][name]-[contenthash].[ext]",
97
- outputPath: "../",
98
- publicPath: "../",
99
- },
92
+ type: "asset/resource",
93
+ generator: {
94
+ filename: "../[path][name]-[hash][ext][query]"
95
+ }
100
96
  }
101
97
 
102
98
  // Default configuration object
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "1.1.0.beta1"
4
+ VERSION = "1.1.0.beta2"
5
5
  CODE_NAME = "Belmont"
6
6
  end
@@ -18,7 +18,6 @@
18
18
  "esbuild": "^0.14.39",
19
19
  <%- if frontend_bundling_option == "webpack" -%>
20
20
  "esbuild-loader": "^2.18.0",
21
- "file-loader": "^6.2.0",
22
21
  "mini-css-extract-plugin": "^2.6.0",
23
22
  <%- else -%>
24
23
  "glob": "^8.0.1",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta1
4
+ version: 1.1.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team