Commit ed067e8d by David Committed by Torkel Ödegaard

Fix CSS asset loading for yarn start (HMR) (#11855)

* enable url() processing in CSS to ensure assets load in HMR mode
* only needed when running `yarn start` which needs this for the hot
reloader
parent 4c6e4e2a
......@@ -12,6 +12,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, '../../public/build'),
filename: '[name].[hash].js',
// Keep publicPath relative for host.com/grafana/ deployments
publicPath: "public/build/",
},
resolve: {
......
......@@ -85,7 +85,7 @@ module.exports = merge(common, {
]
},
require('./sass.rule.js')({
sourceMap: true, minimize: false, preserveUrl: false
sourceMap: true, minimize: false, preserveUrl: HOT
}, extractSass),
{
test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment