diff --git a/package.json b/package.json index f5e0040..d384947 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/webpack.config.js b/webpack.config.js index 6d2e6de..ced6559 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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" } ] },