remix-sitemap
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -34,2 +34,17 @@ "use strict"; | ||
const dir = path_1.default.resolve(process.cwd()); | ||
const cleanAssetsPlugin = { | ||
name: 'clean-assets', | ||
setup(build) { | ||
build.onResolve({ | ||
filter: /\.(png|jpg|jpeg|gif|svg|webp|ico|woff|woff2|ttf|otf|eot|mp4|webm|wav|mp3|m4a|aac|oga|pdf)$/ | ||
}, args => ({ | ||
path: args.path, | ||
namespace: 'clean-assets' | ||
})); | ||
build.onLoad({ filter: /.*/, namespace: 'clean-assets' }, () => ({ | ||
contents: '', | ||
loader: 'js' | ||
})); | ||
} | ||
}; | ||
const cleanStylesPlugin = { | ||
@@ -42,3 +57,3 @@ name: 'clean-styles', | ||
})); | ||
build.onLoad({ filter: /.*/, namespace: 'clean-styles' }, args => ({ | ||
build.onLoad({ filter: /.*/, namespace: 'clean-styles' }, () => ({ | ||
contents: '', | ||
@@ -50,3 +65,3 @@ loader: 'js' | ||
async function createModuleBuilder() { | ||
const plugins = [cleanStylesPlugin]; | ||
const plugins = [cleanStylesPlugin, cleanAssetsPlugin]; | ||
const tsconfig = path_1.default.resolve(dir, 'tsconfig.json'); | ||
@@ -53,0 +68,0 @@ const isTsProject = fs_1.default.existsSync(tsconfig); |
{ | ||
"name": "remix-sitemap", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"private": false, | ||
@@ -11,2 +11,5 @@ "bin": { | ||
"build": "tsc --build", | ||
"test": "vitest", | ||
"test:ui": "vitest --ui", | ||
"coverage": "vitest run --coverage", | ||
"prepublishOnly": "npm run build", | ||
@@ -28,3 +31,6 @@ "dev": "tsc -w" | ||
"@types/xml": "^1.0.8", | ||
"typescript": "^4.9.5" | ||
"@vitest/coverage-c8": "^0.29.8", | ||
"@vitest/ui": "^0.29.8", | ||
"typescript": "^4.9.5", | ||
"vitest": "^0.29.8" | ||
}, | ||
@@ -31,0 +37,0 @@ "peerDependencies": { |
@@ -12,2 +12,5 @@ <h1>Remix Sitemap</h1> | ||
</a> | ||
<a href="https://github.com/fedeya/remix-sitemap/actions/workflows/ci.yml"> | ||
<img alt="CI" src="https://github.com/fedeya/remix-sitemap/actions/workflows/ci.yml/badge.svg"> | ||
</a> | ||
</p> | ||
@@ -14,0 +17,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38
1401
245
78731
9