style: rename platform to bridge (#452)

* style: rename platform to bridge

* chore: tsc
This commit is contained in:
Baptiste Grob
2020-08-25 16:56:32 +02:00
committed by GitHub
parent b2511455dd
commit da78399567
11 changed files with 45 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ module.exports = (env = {
plugins: [
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(require('./package.json').version),
__PLATFORM_WEB__: JSON.stringify(env.platform === 'web'),
__WEB__: JSON.stringify(env.platform === 'web'),
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output