2018-03-31 06:58:38 +02:00
|
|
|
module.exports = {
|
2018-05-26 21:33:27 +02:00
|
|
|
entry: './resources/assets/scripts/app.js',
|
2018-03-31 06:58:38 +02:00
|
|
|
output: {
|
|
|
|
filename: 'webpack.build.js',
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader',
|
|
|
|
options: {
|
|
|
|
postcss: [
|
|
|
|
require('postcss-import'),
|
|
|
|
require('postcss-preset-env')({stage: 0}),
|
|
|
|
require('tailwindcss')('./tailwind.js'),
|
|
|
|
require('autoprefixer'),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2018-03-31 22:51:18 +02:00
|
|
|
exclude: /(node_modules|vendor)/,
|
2018-03-31 06:58:38 +02:00
|
|
|
use: [{
|
|
|
|
loader: "babel-loader",
|
|
|
|
options: { presets: ['es2015'] }
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
2018-03-31 22:51:18 +02:00
|
|
|
// 'vue': 'vue/dist/vue.js'
|
|
|
|
'vue$': 'vue/dist/vue.esm.js'
|
2018-03-31 06:58:38 +02:00
|
|
|
},
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
},
|
|
|
|
plugins: [],
|
|
|
|
};
|