12345678910111213141516171819 |
- const path = require('path');
- module.exports = {
- entry: './NFTmarket/assets/index.js', // path to our input file
- output: {
- filename: 'index-bundle.js', // output bundle file name
- path: path.resolve(__dirname, './NFTmarket/static'), // path to our Django static directory
- },
- module: {
- rules: [
- {
- test: /\.(js|jsx)$/,
- exclude: /node_modules/,
- loader: "babel-loader",
- options: { presets: ["@babel/preset-env", "@babel/preset-react"] }
- },
- ]
- }
- };
|