Use react-sdk Reskindex plugin
This automates that reskindexing so that running `npm run reskindex` is not necessary when adding a component - it's built into the build process.
This commit is contained in:
parent
e1cd046c1a
commit
c529ef644c
3 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
Copyright 2017 Vector Creations Ltd
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +20,6 @@ limitations under the License.
|
||||||
* You can edit it you like, but your changes will be overwritten,
|
* You can edit it you like, but your changes will be overwritten,
|
||||||
* so you'd just be trying to swim upstream like a salmon.
|
* so you'd just be trying to swim upstream like a salmon.
|
||||||
* You are not a salmon.
|
* You are not a salmon.
|
||||||
*
|
|
||||||
* To update it, run:
|
|
||||||
* ./reskindex.js -h header
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports.components = require('matrix-react-sdk/lib/component-index').components;
|
module.exports.components = require('matrix-react-sdk/lib/component-index').components;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
Copyright 2017 Vector Creations Ltd
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -2,6 +2,7 @@ const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
const ReskindexPlugin = require('matrix-react-sdk/lib/utils/ReskindexPlugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
|
@ -124,6 +125,8 @@ module.exports = {
|
||||||
// about moving them.
|
// about moving them.
|
||||||
inject: false,
|
inject: false,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
new ReskindexPlugin('./node_modules/matrix-react-sdk/header'),
|
||||||
],
|
],
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue