Skip to content

Commit 6d8963c

Browse files
committed
Update webpack configs
1 parent a032b46 commit 6d8963c

File tree

40 files changed

+190
-70
lines changed

40 files changed

+190
-70
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};

draft-js-buttons/postcss.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-buttons/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-counter-plugin/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-hashtag-plugin/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-inline-toolbar-plugin/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-linkify-plugin/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

draft-js-mention-plugin/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -17,8 +16,8 @@ module.exports = {
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-var */
22
var path = require('path');
33
var ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
var autoprefixer = require('autoprefixer');
54

65
module.exports = {
76
output: {
@@ -13,12 +12,12 @@ module.exports = {
1312
loaders: [
1413
{
1514
test: /\.css$/,
16-
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader'),
15+
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules&importLoaders=1&localIdentName=draftJsEmojiPlugin__[local]__[hash:base64:5]!postcss-loader' }),
1716
},
1817
],
1918
},
20-
postcss: [autoprefixer({ browsers: ['> 1%'] })],
19+
2120
plugins: [
22-
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
21+
new ExtractTextPlugin({ filename: `${path.parse(process.argv[2]).name}.css` }),
2322
],
2423
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable global-require */
2+
3+
module.exports = {
4+
plugins: [
5+
require('autoprefixer')({ browsers: ['> 1%'] })
6+
]
7+
};

0 commit comments

Comments
 (0)