mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
32 lines
910 B
JavaScript
32 lines
910 B
JavaScript
const webpack = require("webpack");
|
|
const path = require("path");
|
|
|
|
module.exports = {
|
|
entry: [path.resolve(__dirname, "./src/js/main.js"), path.resolve(__dirname, "./src/styles/main.scss")],
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "dribbblish-dynamic.js"
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: []
|
|
},
|
|
{
|
|
test: /\.scss$/,
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: "file-loader",
|
|
options: { name: "user.css" }
|
|
},
|
|
"sass-loader"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
devtool: false,
|
|
plugins: [new webpack.SourceMapDevToolPlugin({})]
|
|
};
|