How to use the @dojo/webpack-contrib/css-module-plugin/CssModulePlugin.default function in @dojo/webpack-contrib

To help you get started, we’ve selected a few @dojo/webpack-contrib 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 vogloblinsky / web-components-benchmark / pascal-triangle / dojo / config / build-widget / base.config.js View on Github external
jsonpFunction: getJsonpFunctionName(
                `-${packageName}-${jsonpIdent}`
            ),
            libraryTarget: 'jsonp',
            path: path.resolve('./dist')
        },
        resolve: {
            modules: [basePath, path.join(basePath, 'node_modules')],
            extensions
        },
        devtool: false,
        watchOptions: {
            ignored: /node_modules/
        },
        plugins: removeEmpty([
            new CssModulePlugin_1.default(basePath),
            new webpack.BannerPlugin(banner),
            new IgnorePlugin(/request\/providers\/node/),
            new ExtractTextPlugin({
                filename: getPath =>
                    getPath(`[name]-${packageJson.version}.css`)
            }),
            new webpack.NamedChunksPlugin(),
            new webpack.NamedModulesPlugin()
        ]),
        module: {
            rules: removeEmpty([
                tsLint && {
                    test: /\.ts$/,
                    enforce: 'pre',
                    loader: 'tslint-loader',
                    options: {