← Back
Editing: webpack.config.js
/* eslint-disable */ var path = require( 'path' ); var UglifyJSPlugin = require( 'uglifyjs-webpack-plugin' ); var ExtractTextPlugin = require( 'extract-text-webpack-plugin' ); module.exports = { entry : './src/index.js', output : { path : path.resolve( __dirname , 'dist' ), filename : 'edit-shortcode.js' }, module : { rules : [ { test : /\.js$/, exclude : '/node_modules/', use : 'babel-loader' }, { test : /\.scss$/, exclude : '/node_modules/', use : ExtractTextPlugin.extract( { use : [ { loader : 'css-loader' , options : { minimize : true } } , 'sass-loader' ] } ) } ] }, plugins : [ new UglifyJSPlugin(), new ExtractTextPlugin( 'edit-shortcode.css' ) ] };
Save File
Cancel