README
@glennreyes/is-webpack
Simple check if code is running through webpack
Installation & Usage
npm install @glennreyes/is-webpack
const isWebpack = require('@glennreyes/webpack')
if (isWebpack) {
// ...
}
Simple check if code is running through webpack
<script type="module">
import glennreyesIsWebpack from 'https://cdn.skypack.dev/@glennreyes/is-webpack';
</script>
Simple check if code is running through webpack
npm install @glennreyes/is-webpack
const isWebpack = require('@glennreyes/webpack')
if (isWebpack) {
// ...
}