basic-imba/webpack.config.js

33 lines
621 B
JavaScript
Raw Normal View History

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',
},
{
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: {
extensions: [".imba", ".js", ".json", ".css"]
2018-02-09 15:58:42 +01:00
},
entry: "./src/client.imba",
output: { path: __dirname + '/dist', filename: "client.js" }
}