Make sure we actually build netlify-cms as library (#169)

* Build netlify-cms as a library

* Bump version
This commit is contained in:
Mathias Biilmann 2016-11-23 13:37:51 -08:00 committed by Cássio Souza
parent 60570dbecb
commit fa03ce29bf
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "netlify-cms", "name": "netlify-cms",
"version": "0.1.6", "version": "0.1.7",
"description": "Netlify CMS lets content editors work on structured content stored in git", "description": "Netlify CMS lets content editors work on structured content stored in git",
"main": "dist/cms.js", "main": "dist/cms.js",
"scripts": { "scripts": {

View File

@ -20,6 +20,9 @@ module.exports = merge.smart(require('./webpack.base.js'), {
path: path.join(__dirname, 'dist'), path: path.join(__dirname, 'dist'),
filename: '[name].js', filename: '[name].js',
publicPath: `http://${ HOST }:${ PORT }/`, publicPath: `http://${ HOST }:${ PORT }/`,
library: 'netlify-cms',
libraryTarget: 'umd',
umdNamedDefine: true,
}, },
context: path.join(__dirname, 'src'), context: path.join(__dirname, 'src'),
module: { module: {

View File

@ -11,6 +11,9 @@ module.exports = merge.smart(require('./webpack.base.js'), {
output: { output: {
path: path.join(__dirname, 'dist'), path: path.join(__dirname, 'dist'),
filename: '[name].js', filename: '[name].js',
library: 'netlify-cms',
libraryTarget: 'umd',
umdNamedDefine: true,
}, },
module: { module: {
loaders: [ loaders: [