mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
028139a0e1
refs https://github.com/TryGhost/members.js/issues/12 - Updates package name and add umd/unpkg setup in `package.json` - Updated webpack config to publish minified bundle at `umd/memebrs.min.js` - Updated .gitignore to remove build folders
21 lines
479 B
JavaScript
21 lines
479 B
JavaScript
const path = require('path');
|
|
const glob = require('glob');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'bundle.js': glob.sync('build/static/?(js|css)/main.*.?(js|css)').map(f => path.resolve(__dirname, f))
|
|
},
|
|
output: {
|
|
filename: 'members.min.js',
|
|
path: __dirname + '/umd'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ['style-loader', 'css-loader']
|
|
}
|
|
]
|
|
},
|
|
plugins: []
|
|
}; |