1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-29 19:34:19 +00:00
triennale-appunti-steffo/preact.config.js

27 lines
687 B
JavaScript
Raw Normal View History

2020-03-01 20:25:46 +00:00
// noinspection JSUnusedGlobalSymbols,JSUnusedLocalSymbols
export default function (config, env, helpers) {
// noinspection JSUnresolvedVariable
config.resolve.alias["react"] = "preact/compat";
// noinspection JSUnresolvedVariable
config.resolve.alias["react-dom"] = "preact/compat";
config.module.rules.push(
{
test: /\.nojekyll$/,
loader: 'file-loader',
options: {
name: '.nojekyll'
}
}
);
config.module.rules.push(
{
test: /CNAME$/,
loader: 'file-loader',
options: {
name: 'CNAME'
}
}
);
};