Skip to content

Instantly share code, notes, and snippets.

@ivarec
Created March 20, 2018 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivarec/61967be54c4e61a6a7dcc21bb27a249e to your computer and use it in GitHub Desktop.
Save ivarec/61967be54c4e61a6a7dcc21bb27a249e to your computer and use it in GitHub Desktop.
const path = require('path');
const webpack = require('webpack')
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
Popper: ['popper.js', 'default'],
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment