mediawiki-skins-MinervaNeue/.storybook/webpack.config.js
jdlrobson 1200cb5279 Storybook added to MinervaNeue
For now just adding story entries for footer element and last modified.

Bug: T244106
Change-Id: Ib36f22f9b9d805f87fc074d12473497cfaf91b79
2020-03-03 15:22:34 +00:00

47 lines
861 B
JavaScript

const path = require( 'path' );
module.exports = {
module: {
rules: [ {
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
// Beware of https://github.com/babel/babel-loader/issues/690. Changes to browsers require
// manual invalidation.
cacheDirectory: true
}
}
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
issuer: /\.less$/,
loader: 'file-loader',
options: {
paths: [
path.resolve( __dirname, 'components/images' )
]
}
},
{
// In core some LESS imports don't specify filename.
test: /\.less$/,
use: [ {
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'less-loader',
options: {
relativeUrls: false,
paths: [
path.resolve( __dirname, '../.resolve-less-imports' )
]
}
} ]
},
]
}
};