How to use the @jupyterlab/extension-builder/lib/builder.buildExtension function in @jupyterlab/extension-builder

To help you get started, we’ve selected a few @jupyterlab/extension-builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hahnlee / ipytracer / js / webpack.config.js View on Github external
// Copyright (c) Han Lee.
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.

var version = require('./package.json').version;

var loaders = [
    { test: /\.css$/, loader: "style-loader!css-loader" },
    { test: /\.json$/, loader: 'json-loader' },
    { test: /\.js$/, loader: 'babel-loader?presets[]=es2015' }
];

var buildExtension = require('@jupyterlab/extension-builder/lib/builder').buildExtension;

buildExtension({
    name: 'ipytracer',
    entry: './src/labplugin',
    outputDir: '../ipytracer/staticlab',
    useDefaultLoaders: false,
    extractCSS: false,
    config: {
        module: {
            loaders: loaders
        }
    }
});

module.exports = [
    {// Notebook extension

@jupyterlab/extension-builder

Tools for building JupyterLab extensions

BSD-3-Clause
Latest version published 8 years ago

Package Health Score

67 / 100
Full package analysis

Similar packages