Necesito Programar Más

    webpack-exclude-entry

    1.0.1 • Public • Published

    webpack-exclude-entry

    Excludes files from output

    install

    npm i -D webpack-exclude-entry

    Use

    const ExcludeEntry = require('webpack-exclude-entry');
    const MiniCssExtractPlugin = require("mini-css-extract-plugin");
    
    const extractSass = new MiniCssExtractPlugin({
    	filename: './css/[name].css',
    });
    module.exports = (env, argv) => {
    
    	return {
    		entry: {
    			"style.min": [jsPath + 'style.js'],
    			"build.min": [jsPath + 'index.js'],
    		},
    		output: {
    			path: './dist/',
    			filename: 'js/[name].js',
    		},
    		plugins: [
    			extractSass,
    			new ExcludeEntry([/style\.min\.js/]), //do not save files
    		],
    	};
    };
    

    Output result

    ./dist/css/style.min.css
    ./dist/js/build.min.js
    

    Install

    npm i webpack-exclude-entry

    DownloadsWeekly Downloads

    35

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.99 kB

    Total Files

    4

    Last publish

    Collaborators

    • mupic