Webpack hook for jsongen, [somewhat broken] UI changes
This commit is contained in:
@@ -6,11 +6,23 @@ module.exports = {
|
||||
webpack: (config, options) => {
|
||||
config.experiments = { asset: true };
|
||||
|
||||
const { cachePostLinkData } = require('./util/post-cache');
|
||||
|
||||
config.plugins.push(
|
||||
{
|
||||
apply: (compiler) => {
|
||||
compiler.hooks.initialize.tap('cachePostLinkDataInit', _ => {
|
||||
cachePostLinkData();
|
||||
});
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
config.module.rules.push(
|
||||
{
|
||||
test: /\.ya?ml$/,
|
||||
use: 'js-yaml-loader',
|
||||
|
||||
|
||||
},
|
||||
{
|
||||
test: /\.svg$/,
|
||||
|
||||
Reference in New Issue
Block a user