Closed phillipskevin closed 7 years ago
This is not working in production mode.
@nlundquist confirmed this is happening because of bundleAssets: false
:
~/dev/ting-node [donejs1.0|✚3…30⚑9]
16:51 $ cat dist/bundles/ting-node/page/internet/index/index.css | grep bannerNarrowCharlottesville
background-image: url(../../../../../src/assets/images/bannerNarrowCharlottesville.svg);
~/dev/ting-node [donejs1.0|✚3…30⚑9]
16:51 $ node
> path.join('/Users/kevin/dev/ting-node/dist/bundles/ting-node/page/internet/index/', '../../../../../src/assets/images/bannerNarrowCharlottesville.svg')
'/Users/kevin/dev/ting-node/dist/src/assets/images/bannerNarrowCharlottesville.svg'
With bundleAssets: true
the path is updated correctly:
~/dev/ting-node [donejs1.0|✚3…30⚑9]
16:51 $ cat dist/bundles/ting-node/page/internet/index/index.css | grep bannerNarrowCharlottesville
background-image: url(../../../../../src/assets/images/bannerNarrowCharlottesville.svg);
~/dev/ting-node [donejs1.0|✚3…30⚑9]
16:51 $ node
> path.join('/Users/kevin/dev/ting-node/dist/bundles/ting-node/page/internet/index/', '../../../../../src/assets/images/bannerNarrowCharlottesville.svg')
'/Users/kevin/dev/ting-node/dist/src/assets/images/bannerNarrowCharlottesville.svg'
See https://github.com/donejs/css/issues/59.