mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 15:07: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
|
limit: 10000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ // First party images are saved as files to be cached
|
// { // First party images are saved as files to be cached
|
||||||
test: /\.(png|jpg|gif|svg)$/,
|
// test: /\.(png|jpg|gif|svg)$/,
|
||||||
exclude: /node_modules/,
|
// exclude: /node_modules/,
|
||||||
loader: "file-loader",
|
// loader: "file-loader",
|
||||||
options: {
|
// options: {
|
||||||
name: "images/[name].[ext]"
|
// name: "images/[name].[ext]"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{ // Third party images are inlined
|
{ // Third party images are inlined
|
||||||
test: /\.(png|jpg|gif|svg)$/,
|
test: /\.(png|jpg|gif|svg)$/,
|
||||||
exclude: /web\/static/,
|
exclude: /web\/static/,
|
||||||
|
@ -321,7 +321,7 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
src: "build/prod/index.html",
|
src: "build/prod/index.html",
|
||||||
dest: "build/prod/index.html"
|
dest: "build/prod/index.html"
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
chmod: {
|
chmod: {
|
||||||
build: {
|
build: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue