Skip to content

Commit

Permalink
prettier --write '**/*.js'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 21, 2019
1 parent e070c8b commit 6105786
Show file tree
Hide file tree
Showing 15 changed files with 16,356 additions and 9,842 deletions.
7 changes: 3 additions & 4 deletions test/assetgraph-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,9 @@ describe('assetgraph-webpack', function() {

// Webpack 1: 1.bundle.js
// Webpack 2: 0.bundle.js
expect(assetGraph, 'to contain asset', { fileName: 'bundle.js' }).and(
'to contain asset',
{ fileName: { $regex: /^[01]\.bundle\.js$/ } }
);
expect(assetGraph, 'to contain asset', {
fileName: 'bundle.js'
}).and('to contain asset', { fileName: { $regex: /^[01]\.bundle\.js$/ } });
expect(assetGraph, 'to contain relation', {
from: { fileName: 'index.html' },
to: { fileName: 'bundle.js' }
Expand Down
2 changes: 1 addition & 1 deletion testdata/codeSplit/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alert('main!');

require.ensure(['./split'], function() {
require('./split');
require('./split');
});
10 changes: 5 additions & 5 deletions testdata/codeSplit/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
}
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
}
};
32 changes: 15 additions & 17 deletions testdata/css/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
var ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
use: ['css-loader']
})
}
]
},
plugins: [
new ExtractTextPlugin('[name].css')
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
use: ['css-loader']
})
}
]
},
plugins: [new ExtractTextPlugin('[name].css')]
};
16 changes: 8 additions & 8 deletions testdata/namedUnusedBundles/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
entry: {
main: './main',
unused: './unused'
},
output: {
path: 'dist',
filename: 'bundle.[name].js'
}
entry: {
main: './main',
unused: './unused'
},
output: {
path: 'dist',
filename: 'bundle.[name].js'
}
};
12 changes: 6 additions & 6 deletions testdata/publicPath/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js',
publicPath: '/static/'
}
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js',
publicPath: '/static/'
}
};
10 changes: 5 additions & 5 deletions testdata/simple/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
}
entry: './main',
output: {
path: 'dist',
filename: 'bundle.js'
}
};
Loading

0 comments on commit 6105786

Please sign in to comment.