mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 02:22:09 +00:00
67 lines
No EOL
2.1 KiB
JavaScript
67 lines
No EOL
2.1 KiB
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
output: {
|
|
publicPath: '/'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
include: [
|
|
path.resolve(__dirname, '../src'),
|
|
path.resolve(__dirname, '../node_modules/stremio-icons/dom')
|
|
],
|
|
use: {
|
|
loader: 'babel-loader'
|
|
}
|
|
},
|
|
{
|
|
test: /\.less$/,
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: 'style-loader'
|
|
},
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
modules: true,
|
|
localIdentName: '[local]_[hash:base64:5]',
|
|
importLoaders: 2
|
|
}
|
|
},
|
|
{
|
|
loader: 'postcss-loader',
|
|
options: {
|
|
ident: 'postcss-id',
|
|
plugins: () => [
|
|
require('autoprefixer')()
|
|
]
|
|
}
|
|
},
|
|
{
|
|
loader: 'less-loader',
|
|
options: {
|
|
strictMath: true,
|
|
noIeCompat: true,
|
|
compress: true,
|
|
paths: [
|
|
path.resolve(__dirname, '../node_modules/stremio-colors'),
|
|
path.resolve(__dirname, '../src/common')
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.js', '.json', '.less'],
|
|
alias: {
|
|
'stremio-common': path.resolve(__dirname, '../src/common'),
|
|
'stremio-routes': path.resolve(__dirname, '../src/routes'),
|
|
'stremio-services': path.resolve(__dirname, '../src/services')
|
|
}
|
|
}
|
|
}; |