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",
|
"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": {
|
||||||
|
@ -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: {
|
||||||
|
@ -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: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user