Make sure we actually build netlify-cms as library (#169)
* Build netlify-cms as a library * Bump version
This commit is contained in:
parent
60570dbecb
commit
fa03ce29bf
@ -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": {
|
||||
|
@ -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: {
|
||||
|
@ -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: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user