Skip to content

Commit 485b144

Browse files
authored
Hotfix rename woff files so redirect works better (#1128)
* Intial commit message * remove webpack fingerprint * Simplify asset precompilation in Dockerfile Removed redundant asset short-name copying from Dockerfile. * Fix syntax error in Dockerfile RUN command
1 parent 7f38db6 commit 485b144

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

config/initializers/mime_types.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22

33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
5-
Mime::Type.register 'font/woff', :woff
6-
Mime::Type.register 'font/woff2', :woff2
7-
Mime::Type.register 'font/ttf', :ttf

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ module.exports = {
2323
// Use our dynamically generated entries object
2424
entry: entries,
2525
output: {
26-
// [name] will be replaced by the key from the entry object (e.g., 'activities', 'price_lists')
2726
filename: "[name].js",
2827
sourceMapFilename: "[name].js.map",
2928
path: path.resolve(__dirname, "app/assets/builds"),
29+
// emit original names so Sprockets can add the single fingerprint
30+
assetModuleFilename: "[name][ext]"
3031
},
3132
plugins: [
3233
new webpack.optimize.LimitChunkCountPlugin({

0 commit comments

Comments
 (0)