Line | |
---|
1 | // vue.config.js
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * @type {import('@vue/cli-service').ProjectOptions}
|
---|
5 | */
|
---|
6 | module.exports = {
|
---|
7 | filenameHashing: false, // Allows us to easily setup direct links to the bundles in macron-restoration.xsl. You may want to change this for production in order to help with caching
|
---|
8 | publicPath: process.env.NODE_ENV === 'production'
|
---|
9 | ? '/greenstone3/interfaces/atea/ocr/dist'
|
---|
10 | : '/',
|
---|
11 |
|
---|
12 | chainWebpack: config => {
|
---|
13 | config.plugin("html")
|
---|
14 | .tap(args => {
|
---|
15 | args[0].title = "Reo MÄori OCR";
|
---|
16 | return args;
|
---|
17 | });
|
---|
18 |
|
---|
19 | config.resolve.fallback = {
|
---|
20 | "assert": require.resolve("assert/"),
|
---|
21 | "https": require.resolve("https-browserify"),
|
---|
22 | "path": require.resolve("path-browserify"),
|
---|
23 | "querystring": require.resolve("querystring-es3"),
|
---|
24 | "stream": require.resolve("stream-browserify"),
|
---|
25 | "http": require.resolve("stream-http"),
|
---|
26 | "url": require.resolve("url/"),
|
---|
27 | "zlib": require.resolve("browserify-zlib")
|
---|
28 | }
|
---|
29 | },
|
---|
30 |
|
---|
31 | css: {
|
---|
32 | loaderOptions: {
|
---|
33 | sass: {
|
---|
34 | additionalData: "@use \"@/styles/_material.scss\";@use \"@/styles/theme.scss\";"
|
---|
35 | }
|
---|
36 | }
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.