symfony说函数未定义,我不明白为什么 您能帮忙吗,我收到的消息是:你好,未定义 我试图配置webpack.config.js
const webpack = require("webpack");
const path = require("path");
let config = {
mode: 'development',
entry: "./assets/js/login.js",
output: {
path: path.resolve(__dirname, "./public/build/js"),
filename: "loginn.js"
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
// exclude: /node_modules/,
// query: {
// presets: ['es2015']
}
]
// {
// test: /\.css$/,
// loaders: ['style-loader', 'css-loader']
// }
// ]
//
}
};
module.exports=config ;
// module.exports = Encore.getWebpackConfig();
require ('lodash')
var hello =function(){
console.log('coucou');
};