github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/.storybook/webpack.config.js (about) 1 // Copyright 2020 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 const custom = require("../webpack.app.js"); 12 13 const appConfig = custom({dist: "ccl"}, {mode: "development"}); 14 15 module.exports = async ({ config, mode }) => { 16 return { 17 ...config, 18 resolve: { 19 ...config.resolve, 20 modules: appConfig.resolve.modules, 21 extensions: appConfig.resolve.extensions, 22 }, 23 module: { 24 rules: [ 25 ...appConfig.module.rules, 26 ] 27 }, 28 plugins: [ 29 ...config.plugins, 30 // Import 'vendors' library only 31 appConfig.plugins[2] 32 ] 33 }; 34 };