-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
35 lines (34 loc) · 989 Bytes
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const mix = require('laravel-mix');
const Dotenv = require('dotenv-webpack');
mix
.js("src/app.ts", "dist/js/app.js")
.js("src/serviceWorker.ts", "dist/js/main.js")
.js("src/assets/js/popup/main.js", "dist/popup.js")
.sass('src/scss/app.scss', 'dist/css/app.css')
.sass('src/assets/scss/popup.scss', 'dist/popup.css')
.webpackConfig({
resolve: {
extensions: ['.ts', '.js', '.json', '.vue']
},
plugins: [
new Dotenv()
],
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader",
exclude: /node_modules/
},
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
esModule: true
}
}
]
}
}).options({
processCssUrls: false
}).vue();