mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move extensions configuration to webpack.config.js
This commit is contained in:
10
config/webpack/webpack.config.js
Normal file
10
config/webpack/webpack.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { generateWebpackConfig } = require("@rails/webpacker")
|
||||
|
||||
const options = {
|
||||
resolve: {
|
||||
extensions: [".mjs", ".js", ".sass",".scss", ".css", ".module.sass", ".module.scss", ".module.css", ".png", ".svg", ".gif", ".jpeg", ".jpg", ".eot", ".ttf", ".woff"]
|
||||
}
|
||||
}
|
||||
|
||||
// This results in a new object copied from the mutable global
|
||||
module.exports = generateWebpackConfig(options)
|
||||
@@ -39,24 +39,6 @@ default: &default
|
||||
- .woff
|
||||
- .woff2
|
||||
|
||||
extensions:
|
||||
- .mjs
|
||||
- .js
|
||||
- .sass
|
||||
- .scss
|
||||
- .css
|
||||
- .module.sass
|
||||
- .module.scss
|
||||
- .module.css
|
||||
- .png
|
||||
- .svg
|
||||
- .gif
|
||||
- .jpeg
|
||||
- .jpg
|
||||
- .eot
|
||||
- .ttf
|
||||
- .woff
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
compile: true
|
||||
|
||||
Reference in New Issue
Block a user