Created
September 18, 2019 02:15
-
-
Save drewdaemon/6bf8392c448cd9e9196f7416bbfec0c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
mode: 'production', | |
entry: { | |
popup: './src/popup.jsx', | |
}, | |
output: { | |
filename: '[name].js', | |
path: __dirname + '/dist' | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /(node_modules)/, | |
use: { | |
loader: 'babel-loader', | |
options: { | |
presets: ['@babel/preset-env'], | |
plugins: [ | |
["@babel/plugin-transform-react-jsx", { "pragma":"h" }] | |
] | |
} | |
} | |
} | |
] | |
}, | |
resolve: { | |
extensions: ['.js', '.jsx'] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment