forked from SuperblocksHQ/superblocks-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreact.config.js
25 lines (23 loc) · 1.42 KB
/
preact.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2018 Superblocks AB
//
// This file is part of Superblocks Lab.
//
// Superblocks Lab is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 3 of the License.
//
// Superblocks Lab is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Superblocks Lab. If not, see <http://www.gnu.org/licenses/>.
import CopyWebpackPlugin from 'copy-webpack-plugin';
export default config => {
config.plugins.push( new CopyWebpackPlugin([{ context: `${__dirname}/src/assets`, from: `**/*` }]) );
config.plugins.push( new CopyWebpackPlugin([ { context: `${__dirname}`, from: 'node_modules/monaco-editor/min/vs', to: 'vs', } ]));
config.plugins.push( new CopyWebpackPlugin([ { context: `${__dirname}/src/components/solc/dist`, from: '**/*', to: 'solc', } ]));
config.plugins.push( new CopyWebpackPlugin([ { context: `${__dirname}/src/components/evm/dist`, from: '**/*', to: 'evm', } ]));
config.plugins.push( new CopyWebpackPlugin([ { context: `${__dirname}/src/components/superprovider/dist`, from: 'web3provider.js', to: 'static/js', } ]));
};