38 lines
1015 B
JavaScript
38 lines
1015 B
JavaScript
|
module.exports = {
|
||
|
entry: './resources/assets/pterodactyl/scripts/app.js',
|
||
|
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$/,
|
||
|
exclude: /(node_modules)/,
|
||
|
use: [{
|
||
|
loader: "babel-loader",
|
||
|
options: { presets: ['es2015'] }
|
||
|
}]
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'vue': 'vue/dist/vue.js'
|
||
|
},
|
||
|
extensions: ['*', '.js', '.vue', '.json']
|
||
|
},
|
||
|
plugins: [],
|
||
|
};
|