Switch to preact

This commit is contained in:
hensm
2018-12-09 15:37:34 +00:00
parent 7e26e8d47d
commit 08079b1fa8
5 changed files with 66 additions and 52 deletions

View File

@@ -23,17 +23,6 @@ module.exports = (env) => ({
filename: "[name].js"
, path: `${env.outputPath}`
}
, optimization: {
splitChunks: {
cacheGroups: {
vendor: {
name: "vendor"
, test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/
, chunks: "all"
}
}
}
}
, plugins: [
new webpack.DefinePlugin({
"EXTENSION_NAME" : JSON.stringify(env.extensionName)
@@ -86,4 +75,10 @@ module.exports = (env) => ({
}
]
}
, resolve: {
alias: {
"react": "preact-compat"
, "react-dom": "preact-compat"
}
}
});