From fa03ce29bf2fa249d948e347cc4b9819740877dc Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Date: Wed, 23 Nov 2016 13:37:51 -0800 Subject: [PATCH] Make sure we actually build netlify-cms as library (#169) * Build netlify-cms as a library * Bump version --- package.json | 2 +- webpack.dev.js | 3 +++ webpack.prod.js | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) 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: [