2019-09-30 05:33:50 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
2018-02-09 15:58:42 +01:00
|
|
|
module.exports = {
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2018-03-18 10:40:57 +01:00
|
|
|
test: /\.imba$/,
|
2018-02-09 15:58:42 +01:00
|
|
|
loader: 'imba/loader',
|
2019-09-30 05:33:50 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
loader: 'style-loader'
|
|
|
|
}, {
|
|
|
|
test: /\.css$/,
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
modules: {
|
|
|
|
mode: 'local',
|
|
|
|
localIdentName: '[path][name]__[local]--[hash:base64:5]',
|
|
|
|
context: path.resolve(__dirname, 'src'),
|
|
|
|
hashPrefix: 'my-custom-hash',
|
|
|
|
},
|
|
|
|
},
|
2018-02-09 15:58:42 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
2019-09-30 05:33:50 +02:00
|
|
|
extensions: [".imba", ".js", ".json", ".css"]
|
2018-02-09 15:58:42 +01:00
|
|
|
},
|
|
|
|
entry: "./src/client.imba",
|
2019-09-30 05:33:50 +02:00
|
|
|
output: { path: __dirname + '/dist', filename: "client.js" }
|
|
|
|
}
|