Commit 622792fe authored by GuiΩ's avatar GuiΩ
Browse files

webpack.config.js inutile (à confirmer)

parent 9ce0fd4f
Pipeline #503067 failed with stages
in 1 minute and 18 seconds
const webpack = require("webpack");
const path = require("path");
let BundleTracker = require('webpack-bundle-tracker')
let config = {
mode: 'development',
entry: "./src/main.js",
output: {
path: path.resolve(__dirname, "./public/js/"),
filename: "./bundle.js",
publicPath: '/public/'
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.vue$/,
exclude: /node_modules/,
loader: 'vue-loader'
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
'file-loader'
]
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
}
]
},
plugins: [
new BundleTracker({filename: './webpack-stats.json'}),
],
// resolve: {
// alias: {
// // In vue component : <img src="~__STATIC__/logo.png">
// '__STATIC__': resolve('static'),
// }
// }
//
}
module.exports = config;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment