28 lines
477 B
JavaScript
28 lines
477 B
JavaScript
|
const path = require("path");
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/index.jsx',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'public'),
|
||
|
filename: 'bundle.js',
|
||
|
publicPath: "/",
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.jsx$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: "babel-loader"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
test: /\.s?css$/,
|
||
|
use: ["style-loader", "css-loader", "sass-loader"]
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.js', '.jsx'],
|
||
|
}
|
||
|
};
|