mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-06 22:47:11 -04:00
Fixing issues on packing images into build #webpack #base64 #loader
This commit is contained in:
parent
3faef2c9c9
commit
48b851ba76
1 changed files with 9 additions and 9 deletions
18
Gruntfile.js
18
Gruntfile.js
|
@ -206,14 +206,14 @@ module.exports = function (grunt) {
|
|||
limit: 10000
|
||||
}
|
||||
},
|
||||
{ // First party images are saved as files to be cached
|
||||
test: /\.(png|jpg|gif|svg)$/,
|
||||
exclude: /node_modules/,
|
||||
loader: "file-loader",
|
||||
options: {
|
||||
name: "images/[name].[ext]"
|
||||
}
|
||||
},
|
||||
// { // First party images are saved as files to be cached
|
||||
// test: /\.(png|jpg|gif|svg)$/,
|
||||
// exclude: /node_modules/,
|
||||
// loader: "file-loader",
|
||||
// options: {
|
||||
// name: "images/[name].[ext]"
|
||||
// }
|
||||
// },
|
||||
{ // Third party images are inlined
|
||||
test: /\.(png|jpg|gif|svg)$/,
|
||||
exclude: /web\/static/,
|
||||
|
@ -321,7 +321,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
src: "build/prod/index.html",
|
||||
dest: "build/prod/index.html"
|
||||
}
|
||||
},
|
||||
},
|
||||
chmod: {
|
||||
build: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue