diff --git a/package.json b/package.json index 3a0115f8..e0f055ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "netlify-cms", - "version": "0.1.6", + "version": "0.1.7", "description": "Netlify CMS lets content editors work on structured content stored in git", "main": "dist/cms.js", "scripts": { diff --git a/webpack.dev.js b/webpack.dev.js index 45975e9f..f4447beb 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -20,6 +20,9 @@ module.exports = merge.smart(require('./webpack.base.js'), { path: path.join(__dirname, 'dist'), filename: '[name].js', publicPath: `http://${ HOST }:${ PORT }/`, + library: 'netlify-cms', + libraryTarget: 'umd', + umdNamedDefine: true, }, context: path.join(__dirname, 'src'), module: { diff --git a/webpack.prod.js b/webpack.prod.js index ff7f209e..382cea96 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -11,6 +11,9 @@ module.exports = merge.smart(require('./webpack.base.js'), { output: { path: path.join(__dirname, 'dist'), filename: '[name].js', + library: 'netlify-cms', + libraryTarget: 'umd', + umdNamedDefine: true, }, module: { loaders: [