mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
6b659443b5
- Provides missing accessible label for the settings button Bug: T340256 Change-Id: I86972322ae34f1d1df8d79c66daa9e34091f9dd3
51 lines
942 B
JavaScript
51 lines
942 B
JavaScript
const path = require("path");
|
|
const webpack = require( "webpack" );
|
|
|
|
module.exports = {
|
|
stories: ['./stories/*.stories.js' ],
|
|
webpackFinal: async (config, { configType }) => {
|
|
config.module.rules.push({
|
|
test: /\.less$/,
|
|
use: ['style-loader', 'css-loader', {
|
|
loader: 'less-loader',
|
|
options: {
|
|
paths: [
|
|
path.resolve( __dirname, 'mocks' )
|
|
]
|
|
}
|
|
}]
|
|
});
|
|
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
issuer: /\.less$/,
|
|
loader: 'url-loader'
|
|
});
|
|
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
loader: 'svg-inline-loader',
|
|
issuer: /\.js$/,
|
|
options: {
|
|
removeSVGTagAttrs: false // Keep width and height attributes.
|
|
}
|
|
});
|
|
|
|
config.module.rules.push({
|
|
test: /\.jpg$/,
|
|
loader: 'url-loader'
|
|
});
|
|
|
|
config.resolve.extensions.push( '.js' );
|
|
|
|
config.plugins.push(
|
|
new webpack.ProvidePlugin({
|
|
$: "jquery",
|
|
jQuery: "jquery"
|
|
})
|
|
);
|
|
|
|
return config;
|
|
}
|
|
};
|