Code Monkey home page Code Monkey logo

vue2-multiple-entry's People

Contributors

lincenying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue2-multiple-entry's Issues

生产环境打包后 z-index被重新计算 按照网上的方法无法解决

1.安装cssnano到DevDependencies
2. 修改 build/webpack.prod.conf.js :

`
new OptimizeCSSAssetsPlugin({
cssProcessor: require('cssnano'),
cssProcessorOptions: {
discardComments: {removeAll: true},
// 避免 cssnano 重新计算 z-index
safe: true
},
canPrint: false
})

`

npm run build之后,z-index还是被重新计算了导致样式不正常,请问如何解决这个问题,非常感谢!

css提取问题

多入口,每个模块会打包一个css文件,
module2 ---------- module2.css
module3 ----------- module3.css
生成的html只会引用这一个 css 文件

如果两个模块共用了部分 css,如何将公共的提取成一个 css ,然后页面会引用两个css,一个提取的公共css,一个模块的css

Is it possible to write components directly in html?

Hello! Thanks for cool and helpful boilerplate.

I got a question, is it possible to make structure for pages like that –
modules/
--page1/
----index.js
----index.html
--page2/
----index.js
----index.html

So instead of writing components in index.vue I want to define it in index.js and write component in html like

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="shortcut icon" href="/favicon.ico">
</head>
<body>
<div id="app"></div>
    <nav>
        <navigation :items="items"></navigation>
    </nav>
</body>
</html>

Because I dont want put all my html code to js file, but want to use a few vue components on the page.

Is it possible? Thanks!

I got this webpack.config for multiple page app too, it works but bundle's are so big it includes everything and css duplicates a lot of times. https://gist.github.com/lavezzi1/f026edef2cd819fb87c692a6bb2f4459

Help please!

许多重复的配置,应该可以精简下

我看到了许多重复的环境判断和css-load加载,应该可以合并抽离出来的。
另外,工程应该是基于Vue-cli之前的配置方式搭建的,可否考虑过调整配置和依赖跟进至新的Vue-cli配置?

如何加载静态文件

您好!
dev模式下,如何加载静态js文件呢?
我是想在index.html里面加载requirejs,通过requirejs来加载服务端动态返回的组件,不知道如何写require在 index.html页面里面的相对路径。。

template/index.html中的jquery在哪里有用到?

template/index.html中的jquery在哪里有用到?
搜索了下代码,只是看到在webpack.base.conf.js里有用到,我注释掉,程序正常。
但是删除掉 <script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
页面就渲染不出来了。

开发环境访问路径问题

config.plugins.push(
    new HtmlWebpackPlugin({
        chunks: ['vendor', entry],
        filename: entry + '/index.html',
        template: 'src/template/index.html',
        inject: true
    })
)

我更改了下打包生成目录的结构如下
index
--- index.html
module1
--- index.html
但是在开发环境的时候访问的时候必须是http://localhost:8082/module/index.html
但是当我打包到生产的时候,却只需要http://xxx.com/module就可以了
所以你有什么办法可以在开发环境也通过http://localhost:8082/module能访问得到么

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.