123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`uglifyJsPlugin transforms correctly using "uglifyJsPlugin-0" data 1`] = `
- "module.exports = {
- optimization: {
- minimize: true
- }
- }
- "
- `;
- exports[`uglifyJsPlugin transforms correctly using "uglifyJsPlugin-1" data 1`] = `
- "const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
- module.exports = {
- devtool: \\"source-map\\",
- optimization: {
- minimize: true,
- minimizer: [new UglifyJsPlugin({
- sourceMap: true,
- compress: {}
- })]
- }
- }
- "
- `;
- exports[`uglifyJsPlugin transforms correctly using "uglifyJsPlugin-2" data 1`] = `
- "const Uglify = require('uglifyjs-webpack-plugin');
- module.exports = {
- devtool: \\"source-map\\",
- optimization: {
- minimize: true,
- minimizer: [new Uglify({
- sourceMap: true,
- compress: {}
- })]
- }
- }
- "
- `;
- exports[`uglifyJsPlugin transforms correctly using "uglifyJsPlugin-3" data 1`] = `
- "module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- loaders: [{
- test: /.js$/,
- loaders: ['babel'],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- root: path.resolve('/src'),
- modules: ['node_modules']
- },
- plugins: [new webpack.optimize.OccurrenceOrderPlugin()],
- debug: true,
- optimization: {
- minimize: true
- }
- };
- "
- `;
- exports[`uglifyJsPlugin transforms correctly using "uglifyJsPlugin-4" data 1`] = `
- "const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- loaders: [{
- test: /.js$/,
- loaders: ['babel'],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- root: path.resolve('/src'),
- modules: ['node_modules']
- },
- plugins: [new webpack.optimize.OccurrenceOrderPlugin()],
- debug: true,
- optimization: {
- minimize: true,
- minimizer: [new UglifyJsPlugin({
- sourceMap: true
- })]
- }
- };
- "
- `;
|