How to use the css-loader/dist/utils.js.getLocalIdent function in css-loader

To help you get started, we’ve selected a few css-loader 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 remaxjs / remax / packages / @remax / cli / src / webpack-config.js View on Github external
const path = require('path');
const CreateFileWebpack = require('create-file-webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const fs = require('fs');
const babelPluginComponentStaticInfo = require('@remax/babel-plugin-remax-static-info');
const ejs = require('ejs');

const thisNodeMoudles = name => require.resolve(name);

const getLocalIdent = require('css-loader/dist/utils.js').getLocalIdent;

const cssLoader = thisNodeMoudles('css-loader');
const babelLoader = thisNodeMoudles('babel-loader');
const lessLoader = thisNodeMoudles('less-loader');

const babelPresetEnv = thisNodeMoudles('@babel/preset-env');
const babelPresetReact = thisNodeMoudles('@babel/preset-react');
const babelPluginComponentStaticInfoPath = thisNodeMoudles('@remax/babel-plugin-remax-static-info');

const readJSON = file => JSON.parse(fs.readFileSync(file, 'utf-8'));

function GeneraeBaseWxmlWebpackPlugin() {
  const apply = (compiler) => {
    const emit = (compilation, cb) => {
      const {
        components,

css-loader

css loader module for webpack

MIT
Latest version published 7 months ago

Package Health Score

95 / 100
Full package analysis