Fixing issues on packing images into build #webpack #base64 #loader
This commit is contained in:
parent
3faef2c9c9
commit
48b851ba76
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…
x
Reference in New Issue
Block a user