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
|
||||
}
|
||||
},
|
||||
{ // 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…
x
Reference in New Issue
Block a user