1
1
mirror of https://github.com/primer/css.git synced 2025-01-05 21:22:57 +03:00

nix assets/ from asset path

This commit is contained in:
Shawn Allen 2018-12-05 01:39:40 -08:00
parent 62c707174c
commit f123bc3528

View File

@ -7,7 +7,7 @@ const INDEX_PATTERN = /\/index(\.[a-z]+)?$/
export const config = getConfig().publicRuntimeConfig || {}
export const assetPrefix = config.assetPrefix || ''
export const assetPath = `${assetPrefix}/static/assets/`
export const assetPath = `${assetPrefix}/static/`
export const getAssetPath = path => `${assetPath}${path}`
const ext = /\.mdx?$/