xelpmoc-core
Version:
Xelpmoc Core UI
39 lines (38 loc) • 903 B
JavaScript
const path = require("path");
module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve("dist"),
filename: "index.bundle.js",
library: "xelpmocCore",
libraryTarget: "umd"
},
externals: {
react: "react"
},
module: {
loaders: [
{ test: /\.js$/, loader: "babel-loader", exclude: /node_modules/ },
{
test: /\.css/,
loaders: [
"style-loader",
"css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]&sourceMap&-minimize"
],
include: __dirname + "/src",
exclude: /node_modules/
},
{
test: /\.(png|woff|woff2|eot|ttf)$/,
loader: "url-loader?limit=100000"
},
{
test: /\.(jpg|png|svg)$/,
loader: "file-loader",
options: {
name: "[path][name].[hash].[ext]"
}
}
]
}
};