mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
remove raw-loader and add resolve alias for svgs
This commit is contained in:
parent
5256ff6b7a
commit
ec84ad0c79
2 changed files with 8 additions and 3 deletions
|
|
@ -23,7 +23,6 @@
|
|||
"markdown-it": "^12.2.0",
|
||||
"markdown-it-attrs": "^4.1.0",
|
||||
"moment": "^2.29.1",
|
||||
"node-vibrant": "3.1.4",
|
||||
"raw-loader": "^4.0.2"
|
||||
"node-vibrant": "3.1.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ module.exports = {
|
|||
path: path.resolve(__dirname, "dist"),
|
||||
filename: "dribbblish-dynamic.js"
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".js", ".svg"],
|
||||
alias: {
|
||||
svg: path.resolve(__dirname, "./src/svg")
|
||||
}
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
@ -46,7 +52,7 @@ module.exports = {
|
|||
{
|
||||
test: /\.svg/,
|
||||
exclude: /node_modules/,
|
||||
use: ["raw-loader"]
|
||||
type: "asset/source"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue