mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
This commit is contained in:
@@ -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=&.]+)?$/,
|
||||
|
Reference in New Issue
Block a user